What is the use of render() in react.js?

Answer

render() function is required for each components. render() returns in html and displayed in components.
if we want to render more than one elements,all must be inside one parents tag like <div>,<form>.

render(){
return(
<h1>hello,everyone</h1>
)
}

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 ---