Skip to content

oberonamsterdam/ide-react-redux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

File and live templates for React and Redux

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.

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 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