mAAdhaTTah/brookjs

View on GitHub
packages/brookjs-docs/docs/philosophy/03-best-choice-is-easiest.mdx

Summary

Maintainability
Test Coverage
---
name: Best Choice is Easiest
route: /philosophy/best-choice-is-easiest/
menu: Philosophy
---

# Best Choice is Easiest

- Difficult to do side effects in components
- Difficult to put state in components
- Easy to push actions straight into store
  - Easy to push state into store
- Easy to write & run unit tests
  - Snapshot tests for free with storybook