Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adnasa/ama-react-snippets
https://github.com/adnasa/ama-react-snippets
atom react snippets
Last synced: 12 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/adnasa/ama-react-snippets
- Owner: adnasa
- Created: 2017-10-31T19:52:49.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-01T16:05:13.000Z (about 7 years ago)
- Last Synced: 2024-11-12T23:33:13.033Z (2 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.