Is it OK to use React.render() multiple times in the DOM?

Yes, it is perfectly fine to call React.render multiple times on the same page. Just as you’ve suggested, the React library itself is only loaded once, but each call to React.render will create a new component instance independent of any others. (In fact, such a situation is not uncommon on sites that are in the process of transitioning to React, where some portions of the page are generated using React.render and others are not.)

Leave a Comment