React Demo: CSS Color Names v.02
I'm not happy with my first app with react that are in the previous post, so here i am, posted another update for the apps.
On this updated apps, the key differences are:
- The script are now separated into multiple files:
- app.jsx, the main react file.
- app-header.jsx, the app header, contains title, count, buttons and filter.
- app-color.jsx, the content item.
- utils.js, common JS for operations outside react.
- Add routing, using director.
- Add filter feature.
- Some performace update.
All files are now on github.
Update on March 2, 2015 — move the color initialisation from
componentDidMount() so it show some animation on the page load. Thanks @React_Rocks for the suggestion.