Relative Content

Tag Archive for javascripthtmlreactjsrenderer

How to place the root div with React renderer?

I created a MainPage folder, inside of which I created a Main.js file. I want to display certain contents on my page with this. Even though I call Main.js in the App.js file, the content does not appear. I tried several solutions, but none of them worked. I tried creating a div in the HTML section wi th the “root” id, but I’m not entirely sure where to place it.