0.1.23 • Published 3 years ago

@rdementev/heaven-help v0.1.23

Weekly downloads
25
License
ISC
Repository
gitlab
Last release
3 years ago

при подключение в проект 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

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