I'm wondering if it'd be useful to use a super-small app like this as a living styleguide that we can all comment on and contribute to while we hash out our team's internal standard way of writing React apps.
If you've got comments or ideas, pull this repo and add to it! 🚀
This repo is a version of the official React Tutorial.
npm install
to install dependencies
then npm start
to start the front-end and npm run server
to start Node.js (for persisting comments to comments.json
)
Some discussion points around writing React Components
-
React.createClass
orclass xxxxxx extends React.Component
or both?- This SO question/answer is good --> http://stackoverflow.com/a/35058496
- should we aim for stateless components first?
- what are best practices for defining propTypes?
- how to use Container Components article1 article2
- good ways to integrate with Backbone Models and Collections?
- how do we want our folder structure?
- how to we want to include CSS?
- how should Unit Tests look/work?
- how do we handle UI animation?