React Node Js
React Node js are not frameworks rather they are used in building user interfaces but on UI they are capable of building web application.
TYPES OF REACT NODE
Stateless functional react
Stateful class react
TECHNICAL ASPECTS OF REACT NODE
They help in the reusing of code.
You can tell react what you want and it will build the actual UI that means it is declarative.
You can integrate react in any of our application,it will fit right in.
We can use react to create a mobile application.
The requirements to get started with react are :
Html
Css
JavaScript
Es6 .
To create a react application we use
Node which can be downloaded on nodejs.org
Text editor.
React has components which is a part in the user interface but they all come together to create an app and they are reusable .
TYPES OF REACT COMPONENT
Stateless functional component and
stateful class component.
Stateless functional component : They have no state,there are no constructor needed, no classes to initialize and no lifecycle hooks to worry about.They take props as input and return js as an output.
They also send request to the server and relays the response back without storing any information.
Examples are UDP,DNS,HTTP.
Benefit of stateless function are : They can be faster.
Stateful class component : They are component that holds some state.They also use props.They control how react state changes and implement the component logic .
Examples are : TELNET,FTTP.
Benefit of stateful class component are :
They allow user interface to store data that can change over time.
Difference between stateful and stateless component
stateful component has state while stateless component have no state.
Here is the link to GitHub account of using React Node to create a todo app.
gh repo clone Kennyspecial/index.html