Atom Packages Directory

a package directory for a text editor of the 21st Century

Redux Snippets by Jhen

Install with:
    apm install redux-snippets
  

Atom Redux Snippets

Atom snippets for Redux. This snippets uses Babel(ES2015, ES2016), CoffeeScript, LiveScript syntax.

Support Language

Usage

return { $3 }; } - async-action (rdx-acta) js export function ${1:addTodo}($2) { return (dispatch, getState) => { $4

dispatch({
  $3
});   }; } ```  - action-type (rdx-tp) ```js export const $1 = '$1';$2 ```  - actions-map (rdx-map) ```js const actionsMap = {   [$1]: (state, action) => {
$2   } }; ```  - map-action (rdx-mapact) ```js [$1]: (state, action) => {   $2 } ```  - reducer (rdxer) ```js export default function ${1:todos}(state = initialState, action) {   $2

return state; } - middleware (rdx-mdw) js export default function $1({ dispatch, getState }) { return next => action => {

${2: next(action);}   }; } ```

about LiveScript, CoffeeScript snippets generated code, see live.cson and coffee.cson.

LICENSE

MIT

Keywords: react, redux, snippets, es6, babel, coffeescript, livescript Suggest keywords
Fork me on GitHub