I am using create-react-app. I am trying to call an image from my public folder from a file inside my src/components. I am receiving this error message.     ./src/components/website_index.js Module not found: You attempted to   import ../../public/...
At my company we're migrating the front-end of a web application to ReactJS. We are working with create-react-app (updated to v16), without Redux. Now I'm stuck on a page which structure can be simplified by the following image:    The data...
I create a ReactJS project with the create-react-app package and that worked well, but I cannot find webpack files and configurations.  How does react-create-app work with webpack? Where are the webpack configuration files located in a default instal...
I am following a tutorial on React using create-react-app.  The application is created by create-react-app v1.3.0  create-react-app my-app   The dev server is run by  npm start   After changing the code several times, the browser is not updated live...
Node features the way to increase the heap size via passing in the --max-old-space-size command line flag. In create-react-app projects everything depends on the use of react-scripts. How can I pass in this parameter in such projects and where should...
Here's a bit of code, within a react component class (scaffolded using CRA 2)     click = () => {     console.log(this, "hello");     let x = 1 + 1; //This is just here to let chrome put a break point here.    }   When this code runs,...
I am using create-react-app. Is there a command to create a component to scaffold the files.  Right now I am manually creating the files. Say if the component name is Button, I create a folder named Button inside the component folder and then create...
Jest runs your test suite in parallel by default, but there is a flag (--runInBand) that allows you to run the whole suite sequentially (as pointed out here)  I have some tests that cannot run in parallel, but running the whole suite sequentially tak...
I'm trying   PUBLIC_URL=http://example.com npm run build   with a project built using the latest create-react-script.  However, the occurrences of %PUBLIC_URL% in public/index.html are replaced with an empty string, not the expected value PUBLIC_...
I created my app with create-react-app and trying to use react-router on it. but it's not working at all.  Here's my Header.js.    import React, { Component } from 'react';  class Header extends Component {     render() {         retu...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.