https://github.com/oberonamsterdam/ide-react-redux
JetBrains IDE templates for Redux & React.
https://github.com/oberonamsterdam/ide-react-redux
file-template intellij jetbrains-ides live-template phpstorm webstorm
Last synced: 12 months ago
JSON representation
JetBrains IDE templates for Redux & React.
- Host: GitHub
- URL: https://github.com/oberonamsterdam/ide-react-redux
- Owner: oberonamsterdam
- License: mit
- Created: 2017-06-12T09:03:27.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-07-23T09:28:21.000Z (almost 8 years ago)
- Last Synced: 2025-04-05T12:51:07.290Z (over 1 year ago)
- Topics: file-template, intellij, jetbrains-ides, live-template, phpstorm, webstorm
- Language: JavaScript
- Size: 11.7 KB
- Stars: 10
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE.md
Awesome Lists containing this project
README
# File and live templates for React and Redux
Quickly set up React components, redux reducers, redux [flow action definitions](https://flow.org/en/docs/frameworks/redux/), and redux action creators.
Also includes a file template for use with [redux-persist](https://github.com/rt2zz/redux-persist) which handles the `REHYDRATE` action.
Works with PhpStorm, WebStorm, IntelliJ, etc.

# Overview
## File templates:
Create a new file and any of the following 4 will show up:
- React Component
- React Stateless Component
- Redux state
- Redux state with rehydration _(same as redux state, but adds boilerplate code for handling rehydrations)_
**WARNING**: Omit file extension in file name.
## Live templates
Available commands:
* `ra` - Redux action
* `rac` - Redux action creator
# Automatic install
Download [`settings.jar`](https://raw.githubusercontent.com/oberon-nl/ide-react-redux/master/settings.jar) from this repo and open it with IDE (File > Import Settings...).
# Manual install
### File templates
Put them here:
`~/Library/Preferences/[IDE version]/fileTemplates`
### Live templates
Put them here:
`~/Library/Preferences/[IDE version]/templates`