What is the purpose of render() in React.

Answer

Each React component must have a render() mandatorily.
It returns a single React element which is the representation of the native DOM component.
If more than one HTML element needs to be rendered, then they must be grouped together
inside one enclosing tag such as <form>, <group>,<div> etc.
This function must be kept pure i.e., it must return the same result each time it is invoked.

All react js Questions

Ask your interview questions on react-js

Write Your comment or Questions if you want the answers on react-js from react-js Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---