DOM Element Error #265
Answered
by
jeffreylanters
Dreitser
asked this question in
Help Wanted!
-
I'm running vanilla create-react-app and Unity 2019.4.29f1 LTS and I'm getting this error. I can X it out and seems to work OK but not desired. |
Beta Was this translation helpful? Give feedback.
Answered by
jeffreylanters
Nov 19, 2021
Replies: 1 comment 1 reply
-
Hi Lex! This issue is not related to the module, but I can help you out. The second parameter of ReactDOM's render method should be a reference to an HTML Element. I can't see the rest of your render method's implementation, so I'm not completely sure what you've entered. But an example could look like this; // Get a reference to an HTML Element using its ID attribute in your HTML.
const rootElement = document.getElementById("root");
// Then render the app onto the document using the render method.
ReactDOM.render(
<StrictMode>
<App />
</StrictMode>,
rootElement
); Let me know if this helps. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Dreitser
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi Lex! This issue is not related to the module, but I can help you out. The second parameter of ReactDOM's render method should be a reference to an HTML Element. I can't see the rest of your render method's implementation, so I'm not completely sure what you've entered. But an example could look like this;
Let me know if this helps.