Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/adnasa/ama-react-snippets


https://github.com/adnasa/ama-react-snippets

atom react snippets

Last synced: 12 days ago
JSON representation

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.