Sunday 6 December 2015

How do I use data passed from Node to React?

I don't really understand how to use the data I send from my res.render in react.I have my function, something like..res.render('index', { items: Object }); Then I'm using this.props.items, which I think is correct.The problem I'm having is I don't know how to access the objects, or loop through them.

Submitted December 06, 2015 at 03:59PM by scottcfr

No comments:

Post a Comment