Skip to content

sei40kr/redux-snippets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

redux-snippets

Table of Contents

Description

Redux snippets for yasnippet.

How it works

For example, when expand container snippet in AppContainer.tsx

import { connect } from 'react-redux';
import { Dispatch } from 'redux';

import App, { IProps as IAppProps } from '../components/App';

import { IState as IRootState } from '../';

interface IStateProps {}

const mapStateToProps = (state: IRootState, ownProps: IAppProps): IStateProps => ({
  |
});

interface IDispatchProps {}

const mapDispatchToProps = (dispatch: Dispatch, ownProps: IAppProps): IDispatchProps => ({});

const AppContainer = connect(
  mapStateToProps,
  mapDispatchToProps
)(App);

export default AppContainer;

About

Redux snippets for yasnippet

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published