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
0
votes
1 answer

Git Switch Repo to Boilerplate

I have been working on a project within a git repository (let's call it Repo A). However, as I found myself wasting far too much time fiddling around with my own build configuration, I decided to try to make use of one of the many…
Braden1996
  • 108
  • 1
  • 7
0
votes
1 answer

Define Isomorphic React routes in Web API

I am trying to build a content management system with Isomorphic React. What I'm trying to determine is how I can define the routes with a RESTful request response object. I am looking at the routes module in the React Starter Kit and I don't…
Jack Shultz
  • 2,031
  • 2
  • 30
  • 53
0
votes
0 answers

overlapping css rule in react-app

I have started learning React with the "create react app with webpack" configuration. I import css like this in react component js import '../dist/css/bootstrap.min.css'; import '../dist/css/main.css'; but when webpack compiles the css, my main.css…
0
votes
1 answer

Passing Route Specific Information To Children

I have multiple routes in my webapp like normal. I have a few questions regarding the best ways to pass information down the chain since I can't really find a solid answer: How would I pass what the current route is down to the children…
Smbobeast
  • 17
  • 5
0
votes
2 answers

Relay/Mongodb Error - Cannot Read Property of Undefined

I have this test relay-starter-kit project with an autocomplete search form that renders quotes to the browser. When I use the search form, I get an error in the browser saying "app.js:8284 Uncaught TypeError: Cannot read property 'edges' of…
armand
  • 693
  • 9
  • 29
0
votes
1 answer

Getting field type must be Output Type error when defining a GraphQL schema

I'm using express graphql with the react starter kit boilerplate and am trying to define my own nested schema when i get the error Error: Availability.rooms field type must be Output Type but got: undefined. I took the examples which all had…
MonkeyBonkey
  • 46,433
  • 78
  • 254
  • 460
0
votes
1 answer

Deploy Isomorphic react starter kit to AWS Lambda

I'm a newbie when it comes to Node.js nad React. I'm trying to deploy React Starter Kit — "isomorphic" web app boilerplate to the cloud. I'm currently using heroku, but I've read that I can do this using AWS Lambda and API gateway. I tried to do…
0
votes
1 answer

Getting checksum invalid warning when using apollo client isomorphically with react starter kit

I'm trying to use the Apollo client and I am running into a few issues with dropping it into the react starter kit with redux. https://github.com/kriasoft/react-starter-kit/tree/feature/redux Trying to use the techniques from here:…
0
votes
1 answer

What is fetchKnowingCookie middleware used for in the react starter kit?

Looking through the createHelpers.js code in the react starter kit, I see that it's creating a grapqlRequest and a fetchKnowingCookie method in the…
MonkeyBonkey
  • 46,433
  • 78
  • 254
  • 460
0
votes
2 answers

How is import assets from './assets' resolved in React Starter Kit

In the server.js the assets are imported like this import assets from './assets'; If I understood it correctly this path maps to build/public/assets which is generated through the webpack configuration here: output: { path:…
Mahoni
  • 7,088
  • 17
  • 58
  • 115
0
votes
2 answers

Ajax call in React Starter Kit

I'm using React Starter Kit to create my first React app, and I'm struggling with Ajax calls. I saw that this Kit embeds a way to perform Ajax calls (which is by the way used internally for app routing): import fetch from '../../core/fetch'; I've…
frinux
  • 2,052
  • 6
  • 26
  • 47
0
votes
1 answer

Can't render react-bootstrap ModalTrigger

I'm new to ReactJS and am having trouble rendering a ModalTrigger that is intended to show/hide a modal in a separate component. The boilerplate I used is react-starter-kit. The error returned is: "Invariant Violation: Element type is invalid:…
0
votes
1 answer

Roles of routes and components in React Starter Kit

I am currently trying to understand the way React Starter Kit lays out the project and how its part work together. Currently struggling with routes and components. The role of routes is to decide what to display on a certain path but then there are…
Mahoni
  • 7,088
  • 17
  • 58
  • 115
0
votes
0 answers

Passing props to App. Failed Proptype 'children' expected a single ReactElement

I am trying to make a client request for an array saved on a server, passing down the data by passing React props. However I receive the error Warning: Failed propType: Invalid prop children supplied to App, expected a single ReactElement. Can…
dwigt
  • 611
  • 1
  • 8
  • 18
0
votes
1 answer

React Starter Kit Main.js Not servered to Client

I am building an application with the latest React Starter Kit (Isomorphic) and I’m having a problem. Much of the app has static data so I first made some pages using only server-side rendering. However, when I made a page that added an onClick…
Mark Miller
  • 83
  • 1
  • 5