@rdementev/heaven-help

0.1.23 • Public • Published

при подключение в проект redux redux-saga 1 подключить редюсер import {helpReducer} from "@rdementev/heaven-help"; const createReducer = () => { return combineReducers({ router: connectRouter(history), heavenHelp: helpReducer, ...other }) }

2 подключить сагу import {helpSaga} from "@rdementev/heaven-help"; export default function* rootSaga () { yield all([ fork(helpSaga), ...other ]) }

3 передать в сагу url модуля const sagaMiddleware = createSagaMiddleware({ context: { moduleUrl: '/user_documentation' } });

4 подлкючить компонент userPath - url по которому будет доступен компонент localhost:3005/docs import Documentation from '@rdementev/heaven-help' const ContainerDocumentation = (props) => { return ( <Documentation userPath={'docs'}/> )

} export default ContainerDocumentation

при подключении со своим стором

Readme

Keywords

none

Package Sidebar

Install

npm i @rdementev/heaven-help

Weekly Downloads

0

Version

0.1.23

License

ISC

Unpacked Size

7.54 MB

Total Files

333

Last publish

Collaborators

  • light-ar