This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
npm install @rdementev/heaven-help
при подключение в проект 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 (
)
}
export default ContainerDocumentation
при подключении со своим стором