0
Can i have two React render?
Example: ReactDOM.render(<Navbar />, document.querySelector('.navba-tag')) ReactDOM.render(<BoxContent />, dacument.querySelector('.content-container'))
2 Answers
+ 3
The below mentioned link might be helpful to you.
https://stackoverflow.com/questions/31302803/is-it-ok-to-use-react-render-multiple-times-in-the-dom#:~:text=Yes%2C%20it%20is%20perfectly%20fine,instance%20independent%20of%20any%20others.
Further, there is a typo in your question, you have typed dacument instead of document.
0
Yes, you can, but should be only for independent components which not gonna to communicate with each other.