Quantcast
Channel: Multiple instances of same react component - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by Brigand for Multiple instances of same react component

When the post is added you need to have your data and the target dom node (we'll call these variables data and el) React.render(<MyComponent data={data} />, el); Or without JSX...

View Article



Multiple instances of same react component

I want to add a react component, a comments feature, to a non-react site. The site has a news page with infinite scrolling. Under each news story I want to include the react comments component. I plan...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images