insin / nwb

A toolkit for React, Preact, Inferno & vanilla JS apps, React libraries and other npm modules for the web, with no configuration (until you need it)
Other
5.58k stars 331 forks source link

How can we use same React component multiple times on the same page #540

Open PramodIndusved opened 4 years ago

PramodIndusved commented 4 years ago

The project I am working on is a rendering the component. But when we needs o add more component on the same ID created by the "mountID", It attach only first component to the DOM, Remaining components not get attached to the DOM.

What is the problem with ?

Is there any way so we can mount component to variable class name