Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - State: as much as you need and as little as you can get away with
- - Prefer stateless components
- - Keep logic out of your components
- - Lazy-load and chunk components when aggressively
- - Assume Asynchrony (See above; also—don’t unleash Zalgo)
- - Use UI components
- - Prefer renderProps to large components
- - Start with a story in the storybook
- - Use the adapter pattern for managing state
- - If the data layer promise resolves—assume everything worked out. Do not try to read responses in your components.
- - Location in your application should be reflected in the URL and passed in front React Router. If you find yourself keeping track of the current model (e.g. campaign, template, etc.) in your store, you’re probably doing it wrong.
Add Comment
Please, Sign In to add comment