Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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.