https://github.com/adnasa/ama-react-snippets
https://github.com/adnasa/ama-react-snippets
atom react snippets
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/adnasa/ama-react-snippets
- Owner: adnasa
- Created: 2017-10-31T19:52:49.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-01T16:05:13.000Z (over 7 years ago)
- Last Synced: 2025-01-12T02:45:57.782Z (6 months ago)
- Topics: atom, react, snippets
- Homepage:
- Size: 1.95 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## AMA react snippets
some personal snippets for writing react components
### Commands
command | description
--- | ---
`plain` | scaffolds out a plain class component extending `React.Component`
`pure` | same as `plain`, but extends `React.PureComponent`
`withStore` | scaffolds out a class component with a connected export using redux's `connect`
`withDispatch` | same as `withStore`, but declares a `mapDispatchToProps` as well
`withIntl` | scaffolds out a class extending `React.PureComponent`. Addition, it imports `intlShape` and `injectIntl` HoC and exports the component as such.