Answers for "create react without jsx"

0

create react without jsx

const text = React.createElement('p', {}, 'This is a text');
const container = React.createElement('div','{}',text );
ReactDOM.render(container,rootElement);
Posted by: Guest on July-01-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language