React Component and Props
React Component and Props In last blog we have learned about Getting started with React. If you have not gone through it check it out- https://letslearnwithmahesh.blogspot.com/2020/09/getting-started-with-react-js.html https://letslearnwithmahesh.blogspot.com/2020/09/project-structure-of-react-js.html React Component are independent bit of code which are planned to reuse with different component. Component resembles to JavaScript function which return some Html in the response. React Component can be classified into two category class component and function component. In this tutorial we will be discussing both of them. Create Class Component The Name of the Class Component must be start with Upper case latter. The class type of component needs to inherit from React.Component . Due to Extending React.Component class component has access to many build in function. The class component needs to have a method which return HTML with naming Render(). Lets add a class component wit...