keystonejs / universal-keystone-boilerplate

⚠️ Archived - Legacy Keystone.JS boilerplate for Universal JavaScript projects using React.
MIT License
34 stars 10 forks source link

How to serve data to component? #76

Closed liming closed 8 years ago

liming commented 8 years ago

I like the idea in this boilerplate and tried it for my website. But I could not find a proper way to pass the data from DB to react component.

Take the team example, how to get the teams list from DB and feed it to team component?

I know there will be a redux solution in future: https://github.com/keystonejs/keystone/issues/2090

But do we have another choice before that?

Thanks!

LorbusChris commented 8 years ago

This boilerplate is currently a WIP. It will use this to serve data through redux:

react-easy-universal

Feel free to submit a PR :)

ericelliott commented 8 years ago

:+1:

liming commented 8 years ago

Thanks guys. I will keep an eye on this. It's really a great move of keystonejs. Hope can see it soon.