Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nbkhope/react-generator
Because I am tired of writing React components from scratch
https://github.com/nbkhope/react-generator
atom-snippets react redux snippets sublime-text
Last synced: about 2 months ago
JSON representation
Because I am tired of writing React components from scratch
- Host: GitHub
- URL: https://github.com/nbkhope/react-generator
- Owner: nbkhope
- License: mit
- Created: 2016-12-22T23:26:04.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-12-25T19:38:04.000Z (about 5 years ago)
- Last Synced: 2024-10-23T10:37:31.173Z (3 months ago)
- Topics: atom-snippets, react, redux, snippets, sublime-text
- Language: JavaScript
- Size: 14.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# React Generator
No more writing React components from scratch
## Atom Snippets
Convenient snippets for the Atom text editor are provided! :)
Copy the contents of the file [snippets/react.cson](snippets/react.cson) to your Atom snippets.cson file that is located in `~/.atom/snippets.cson`.
### Snippets Available
| Abbreviation | Description |
|:-------------|:------------------------------------------------------|
| rc | React Component |
| rsfc | React Stateless Functional Component |
| rdc | Redux Component |
| rduc | Redux Reducer |
| ac | Action Creator |
| act | Action Creator with Redux Thunk |
| aca | Action Creator with Axios |
| rdf | Redux Form (v6) |
| ect | Enzyme Component Test |
| rdu3 | Redux Reducer Three Cases (LOADING, SUCCESS, FAILURE) |
| d3ac | Define and Export Three Action Types |
| i3ac | Import Three Action Types |## Sublime Text 3 Snippets
Snippets for Sublime Text are also available!
Copy all the files inside the [sublime-snippets/](sublime-snippets/) directory into your own snippets directory. For Mac users, that would be `~/Users/$USER/Library/Application\ Support/Sublime\ Text\ 3/Packages/User`.
```sh
cp sublime-snippets/* ~/Users/$USER/Library/Application\ Support/Sublime\ Text\ 3/Packages/User
```See the table in the previous section for a listing of all the snippets available.