Redux snippets for yasnippet.
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;