React Boilerplate - A highly scalable, offline-first foundation with the best developer experience and a focus on performance and best practices.
Questions tagged [react-boilerplate]
214 questions
0
votes
1 answer
How should I implement websocket in redux-saga?
What should be my approach towards implementing websocket using boilerplate and saga, I would like to connect the websocket during starting of the application and reconnect when connection drops.
I am think of using fork for sending and receiving…
![](../../users/profiles/7797058.webp)
Maru
- 41
- 2
- 7
0
votes
1 answer
Redux: Import new reducers and feed them new state on route change
The goal
I want to change reducers (and feed them new state) when the route changes.
Current Attempt
I have a route set up with a slug (/components/:slug) that is handled by my ComponentPage reducer. This reducer notices that the route changed (via…
![](../../users/profiles/2122682.webp)
aminimalanimal
- 397
- 2
- 4
- 13
0
votes
2 answers
Integrating antd with react-boilerplate
I added this to the production config:
babelQuery: {
plugins: [["import", { libraryName: "antd", style: true }]],
},
but I'm still getting errors like ReferenceError: Menu is not defined. Am I missing something? Everything works fine locally…
![](../../users/profiles/836291.webp)
userinev
- 35
- 5
- 16
0
votes
2 answers
Dynamic Role Based Routing (React-Router)
I am building an e-commerce related product and there are two types of users (customer & seller). Both types of user have their own homepage (totally different to each other). Now I want to route / on customer homepage if customer is logged-in or to…
![](../../users/profiles/5497499.webp)
John Mcculley
- 11
- 1
- 5
0
votes
1 answer
Where would I add existing JS Code to react-boilerplate
I spent a while toying around with react-boilerplate, reading the docs, searching the web etc. I built up some simple components and containers no problem.
I have a large amount of code that creates DOM nodes and returns them using javascript. For…
![](../../users/profiles/1303144.webp)
Iannazzi
- 1,172
- 2
- 15
- 26
0
votes
1 answer
Webpack changing file in script tag
I'm new to ReactJS and Webpack, I'm using react-boilerplate and I am trying to add a template to the boilerplate which has it's own set of external libraries.
Problem that I'm facing is every time I am trying to include a tag that links to these…
![](../../users/profiles/1136109.webp)
Akshay Singh
- 313
- 1
- 5
- 16
0
votes
1 answer
Call React Redux Toastr within a saga
I'm using React Boilerplate with React Redux Toastr and I want to be able to call a toastr using React Intl's messages.
I've tried to call it within a componet, but as toastr is making state updates, Reacts warns me about that as an anti-pattern. I…
![](../../users/profiles/2000363.webp)
Tomás Francisco
- 621
- 3
- 7
- 14
0
votes
1 answer
Missing files when deploying react-boilerplate project to IIS
I've successfully generated the production files and run from the node prod server (built into react-boilerplate). When I run the project from the IIS-configured URL, http://localhost/abc/, I get console errors:
GET…
![](../../users/profiles/5844084.webp)
devly
- 35
- 1
- 6
0
votes
0 answers
redux-sagas : cancel(watcher) throw error : uncaught at getLogin Generator is already running . Is there a way to disable this error?
I have a bug with redux saga cancel effect.
I have the following redux store in my reactjs application :
/*
* The reducer takes care of our data
* Using actions, we can change our application state
* To add a new action, add it to the switch…
![](../../users/profiles/2127277.webp)
Dimitri Kopriwa
- 8,478
- 12
- 70
- 140
0
votes
2 answers
Is there any "publicPath" option or similar in Webpack DllPlugin?
I'm using mxstbr/react-boilerplate that uses the great DllPlugin, but as the application is served by nginx under /admin, it fails with an 404 when trying to get the reactBoilerplateDeps.dll.js file from the root url (it hits…
![](../../users/profiles/4287323.webp)
Pablo Guillama
- 11
- 1
0
votes
2 answers
Reuse variables in all css files - using postcss-cssnext and specifically postcss-custom-properties with css-modules
I am using css-modules along with postcss-cssnext , and specifically its postcss-custom-properties feature
I am also using react-boilerplate (https://github.com/mxstbr/react-boilerplate/) and this very nice boilerplate comes with these modules used…
![](../../users/profiles/3403972.webp)
dowjones123
- 3,233
- 5
- 34
- 72
0
votes
1 answer
Syntax error in react-boilerplate after adding new dependencies
I have a hard time adding dependencies to a newly generated react-boilerplate project. I face this error:
node.js:122 Uncaught SyntaxError: Unexpected token :
(anonymous function) @ reactBoilerplateDeps.dll.js:340
__webpack_require__ @ …
![](../../users/profiles/5740208.webp)
Nikola Schou
- 2,086
- 2
- 16
- 43
0
votes
2 answers
setup.js is deleted in react-boilerplate when running npm run setup
I have a very strange problem. I have cloned the react-boilerplate repository from here:
https://github.com/mxstbr/react-boilerplate
I add the following dependencies:
"body-parser": "^1.15.0",
"cors": "^2.7.1",
"feathers-client":…
![](../../users/profiles/5740208.webp)
Nikola Schou
- 2,086
- 2
- 16
- 43
0
votes
0 answers
Should I nest containers using react-boilerplate
I would love to nest a container into another so that i don't end up with loads of code handled by a main page of the application. I feel all this logic should be distributed into lower level containers, but i can't find the best approach to do…
![](../../users/profiles/1697715.webp)
Noquepoaqui
- 395
- 3
- 11
0
votes
1 answer
How can I use :global css classes - css modules
I'm using css modules for my reactjs project. Here is my file where I'm trying to use global css classes:
Hello World
Here is my styles.css
:global{
.site-wrapper {
…![](../../users/profiles/5497499.webp)
John Mcculley
- 11
- 1
- 5