Let's face it, React is all over the web by now! The UI library from Facebook seems to be pretty popular among web developers, so I thought I would give it a try rather sooner than later...
The React library in itself lets you write pure UI components, but order to play with them you need a web app. Those components can be efficiently leveraged by an architecture called Flux, a concept based on the idea that, in a web app, data flows in a unique direction, hence introducing the notion of a central dispatcher, stores keeping the application states and views displaying those states.
Well, I'm not intending to give you an introduction to React and Flux, you will easily find plenty on the web! I rather wanted to share a sample I've put together using one of the Flux implementation: DeLorean.js
The sample is slightly derived from DeLorean basic overview sample and tweaked to use a custom React component that will fetch random models from our View & Data Gallery. You can add some more models using the "Add Model" button and clicking on an item will open that model in a new tab. Full sample code embedded at the bottom ...
Want to know more about React? This resource might come in handy: https://github.com/enaqx/awesome-react
Gallery Models
Comments