React
Links
React for Angular DevelopersIntroduction
React is a Javascript library unlike Angular - which is a framework.- - React has only components
- - React has a virtual DOM object for every DOM object ; Limits frequently updating the DOM
- - Only one element rendered per component : JSX
Components
React contains only two types of components: Functional and Class based .Functional components are stateless and have no constructor
function App() {
return (
Hello, World
);
}
export default App;
Class-based components are stateful i.e they keep track of changing data
class HasTheParameter extends React.component{
render(){
return ({this.props.theParameter}
)
}
}
export default HasTheParameter;
Last Updated : 31 Oct 2020