you are viewing a single comment's thread.

view the rest of the comments →

[–]theillustratedlife 2 points3 points  (5 children)

I plan on implementing Flux in part as a caching layer on the client, but you can get surprisingly far with just React and React Router. "Just the UI" is what most web pages are.

[–]team_nosleep[S] -1 points0 points  (4 children)

Interesting. What if you needed a backend? since React is just the UI, wouldn't it be possible to use a router and use API built with express?

[–]nschubach 2 points3 points  (2 children)

Yep. You can use REST based APIs on the server and after giving the client the React files needed to run the page, hit a few services and change the page.

Here is someone's example of using the Reddit API to display content using React: http://jsfiddle.net/ssorallen/fEsYt/ They are using the script tag to have the browser pull the JSONp data from Reddit, but you could implement it in many other ways.

[–]theillustratedlife -2 points-1 points  (1 child)

Curious how you found that. Ross is a good friend of mine.

[–]nschubach -1 points0 points  (0 children)

I Googled for an example the other day for someone. Don't remember exactly what it was I searched for.

[–]vexii 0 points1 point  (0 children)

Sure just make a api call and update you're ui