Questions tagged [react-starter-kit]

React Starter Kit is an opinionated boilerplate for web development built on top of Node.js, Express, GraphQL and React, containing modern web development tools such as Webpack, Babel and Browsersync.

React Starter Kit is an opinionated boilerplate for web development built on top of Node.js, Express, GraphQL and React, containing modern web development tools such as Webpack, Babel and Browsersync. It can be found on github here: https://github.com/kriasoft/react-starter-kit

87 questions
1
vote
1 answer

react-starter-kit: How can I export graphql schema for Relay Modern?

I would like to add Relay Modern to my app started from react-starter-kit. relay-compiler needs a schema definition file (schema.graphql), how can I generate it?
elcsiga
  • 170
  • 1
  • 8
1
vote
0 answers

Build performance for webpack 2

I need some help in improving my build times. I upgraded my webpack config file to version 2 but the build times are worse compared to before. It takes atleast 3min to complete the build. Here's my webpack file /** * React Starter Kit…
1
vote
1 answer

React server side rendering - support for hashbang

I'm porting my website from an Angular client side site to React with server side rendering. I'm using the React starter kit with the universal-router. My customers have old links that use the hashbang form. How can I support these old links in my…
Eldad
  • 1,067
  • 16
  • 36
1
vote
0 answers

React project showing babel plugin errors on Codeship

Attempting to set up my react starter kit project to have CI on codeship, and the project works fine locally. I'm getting the following error ReferenceError: Unknown plugin "syntax-trailing-function-commas" specified.. when I'm attempting to run…
MonkeyBonkey
  • 46,433
  • 78
  • 254
  • 460
1
vote
1 answer

Adding an argument to a GraphQL request

I am using React Starter Kit and I'm trying to pass a string along with the query as an argument but nothing works. I have tried the following: export default { path: '/', async action() { const resp = await fetch('/graphql', { …
j0e
  • 1,441
  • 1
  • 15
  • 17
1
vote
1 answer

React showing component before going through the render method

My react component is being showed (and it is complete functional) before going through the render() method. The project is using the react-starter-kit, and a similar route code can be accessed here. In the picture above I'm calling a bunch of…
Gabriel Siedler
  • 272
  • 3
  • 13
1
vote
1 answer

Why bundle a React server.js for Node?

In the React Starter Kit they bundle with Webpack the server-side code into a server.js which I assumed can be handy but then I started wondering why bundling up the server-side code in the first place, after all Node comes with its own dependency…
Mahoni
  • 7,088
  • 17
  • 58
  • 115
1
vote
0 answers

How to trigger re-render when using stateless functional components in react starter kit

I am building an app using react starter kit. In past react apps, I had always triggered incremental re-rendering of DOM elements by using react.setState. What is the best practice to re-render dom elements based on changes in state when using…
psvj
  • 8,280
  • 8
  • 30
  • 44
1
vote
1 answer

React starter kit Hello World program error

I am trying to make an "Hello World" program as suggest on react tutorial. But I created helloworld.js under src and helloworld.html in root. When I try to run my helloworld.html nothing happens (at all). And when I try to run helloworld.js error…
EdG
  • 2,243
  • 6
  • 48
  • 103
1
vote
1 answer

Error: Server terminated unexpectedly with code: null signal: SIGTERM

> @ start C:\mohan\experiments\react\boilerplates\MyApp babel-node tools/run start [12:12:57] Starting 'start'... [12:12:57] Starting 'clean'... [12:12:58] Finished 'clean' after 49 ms [12:12:58] Starting 'bound copy'... [12:12:58] Finished 'bound…
Mohan Ram
  • 8,345
  • 25
  • 81
  • 130
1
vote
1 answer

adding jquery to react starter kit

I'm new to Javascript world and starting some to create a simple React Project I started With React Starter Kit and added my first module whch is a simple upload file: UploadFile. import React, { Component, PropTypes } from 'react'; import FormData…
hasan
  • 966
  • 2
  • 13
  • 40
1
vote
1 answer

Putting Mapbox in React-Starter-Kit

Putting Mapbox in React-Starter-Kit , Im having trouble implementing MapBox in react-starter-kit. I dont know how I could make a component out of a client. Im using this for npm package of mapbox I wish I could do MapBoxComponent extends…
david
  • 2,900
  • 5
  • 28
  • 48
1
vote
3 answers

#react-starter-kit React onClick not firing on page

I'm using the React-Starter-Kit and am having an issue with an onClick={this.handleClick} not firing in the browser. What is happening: The Colorswatches.js component is loading and showing up in the browser but the onClick isn't working. No console…
Kmoses
  • 13
  • 3
1
vote
0 answers

How to embed a React starterkit app into legacy Rails app?

I have a React app based on the starterkit of Erik Rasmussen from here. The app works pretty well, using React Router and Redux. Since my Rails app is pretty old, the idea to embed the application, is to have a separate controller where the index…
Jason Nerer
  • 551
  • 7
  • 19
0
votes
0 answers

Embedding react component in existing web project

I started a React app using the following react starter kit and I'm trying to use one of the components that I created in an existing old web project. After creating the component using the starter kit, I run npm run build and got the following…
TheUnreal
  • 23,434
  • 46
  • 157
  • 277