Questions tagged [react-boilerplate]

React Boilerplate - A highly scalable, offline-first foundation with the best developer experience and a focus on performance and best practices.

219 questions
0
votes
1 answer

react-boilerplate add custom environment variable

i want to add custom environment variables when using react-boilerplate. In my DEV environment i will point the API to my localhost backend, but in PROD environment i will point it to the PROD backend. I have tried using dotenv-webpack and…
cumibulat
  • 434
  • 3
  • 6
  • 22
0
votes
1 answer

server side redux-saga initial state

I'm using react-boilerplate for my App (Using SSR branch). For some reason we need server side rendering. Also we have some rest API and we need to call one API before all API (for register something). I thinks for initial state I need to call this…
0
votes
0 answers

Implementing react server side rendering and responsive components

I am using react-responsive-redux in which the whole Implementation of media queries is done based on a variable in state called fakeWidth . To get it working according to the docs we need to dispatch a redux action during request handler. In my…
0
votes
1 answer

React Boilerplate cannot be run with "npm run start"

After a fresh checkout of react-boilerplate and running npm run setup and npm run start It stops with an error message similar to this: npm ERR! node v6.10.3 npm ERR! npm v3.10.10 npm ERR! code ELIFECYCLE npm ERR! react-boilerplate@3.4.0 start:…
bpylearner
  • 507
  • 4
  • 12
0
votes
0 answers

HMR is not reloading on changes outside /src

I have a shared folder where reusable React components are stored. I want to make Hot Reload working with that directory, but it doesn't work. Here is the folder structure I have: |__shared |__src |__package.json Somehow Webpack…
0
votes
2 answers

Is it possible to set up flow for nodejs with react-boilerplate?

I don't have much experience with react-boilerplate nor webpack, but seems like it's not possible since the target is web. I've played around with the config of webpack, but had no success. Has anyone managed to set it up ? Any tips, links or…
Rennos
  • 93
  • 1
  • 3
  • 11
0
votes
1 answer

Excluding npm modules from webpack in raeact-boilerplate

I have a project based on react-boilerplate. This seed project keeps server and client code in the same repo. I want to use socket.io. So I type: yarn add socket.io This adds socket.io to the package.json. BUT I think this is then used by webpack…
Ben Aston
  • 53,718
  • 65
  • 205
  • 331
0
votes
0 answers

React Boilerplate with Redux Dev Tools Error?

I'm using React Boilerplate which uses Redux. I have downloaded the Redux Chrome Dev Tools and I keep getting this error combineReducers.js:29 The previous state received by the reducer is of unexpected type. Expected argument to be an instance of…
Martavis P.
  • 1,708
  • 2
  • 27
  • 45
0
votes
0 answers

How to write a test code for the reactjs component?

I am trying to write a test code for the following Reactjs component.This is my first unit test in ReactJs and I found some difficulty to how to write it properly, especially for the functions in the following page. I used react boilerplate to code…
gitu
  • 219
  • 6
  • 18
0
votes
1 answer

Angular to React - How to replace use of pound sign (hashtag)

I am about to redo code switching from Angular 1 to React. I have been using React Boilerplate for a while, which uses React Router v3, and I really like the setup. My Angular project uses URLs like example.com/#/about and I really don't like the…
Martavis P.
  • 1,708
  • 2
  • 27
  • 45
0
votes
0 answers

React-boilerplate project won't run

A javascript react project I've got setup on another machine, won't run on a different machine. The error I get is so uninformative I don't know where to start looking. main.a03af49….js:formatted:1163 Uncaught TypeError: n(...) is not a function at…
xtrinch
  • 2,232
  • 1
  • 24
  • 46
0
votes
1 answer

Code-splitting and async code loading in react-boilerplate

I started using react-boilerplate for my project and I'm trying to figure out how routing works there. Could you please explain me this example in docs or example in app? Why is getComponent() function so large relatively to simple react-router…
0
votes
1 answer

Use an admin html template with react-boilerplate

I already have a HTML Admin template that use bower components (datepickers, sliders, switchers, dropdowns, charts, etc, etc). This template has a layout that I want to use in my app. I'm trying to figure of could I use this template AND…
pmiranda
  • 7,602
  • 14
  • 72
  • 155
0
votes
1 answer

Which reducers should be in react-boilerplate's reducers.js?

It says in the createReducer function of reducers.js that it creates the main reducer with the asynchronously loaded ones: /** * Creates the main reducer with the asynchronously loaded ones */ export default function createReducer(asyncReducers)…
dork
  • 4,396
  • 2
  • 28
  • 56
0
votes
2 answers

How to use Ant Design LocaleProvider with React-Boilerplate

We have started using this React-Boilerplate . Also we are trying to integrate Ant Design for it's awesome components . From the docs of Ant Design I have created a wrapper around AppWrapper of React-boilerplate like this - import { LocaleProvider }…
Bikash Dash
  • 163
  • 6
  • 13