Quickly set up React components, redux reducers, redux flow action definitions, and redux action creators.
Also includes a file template for use with redux-persist which handles the REHYDRATE
action.
Works with PhpStorm, WebStorm, IntelliJ, etc.
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.
Available commands:
ra
- Redux actionrac
- Redux action creator
Download settings.jar
from this repo and open it with IDE (File > Import Settings...).
Put them here:
~/Library/Preferences/[IDE version]/fileTemplates
Put them here:
~/Library/Preferences/[IDE version]/templates