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 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 am trying to use p5 (https://p5js.org/) in a react application and the performance of some sketches is really bad (same in development as after building the app). I'm using create-react-app for the project scaffold, without any changes to the b...
Is there a React equivalent of scoped css as in Vue that's super easy to work with, without a bunch of re-writes? One which I can just import an existing css file, and hook it up to a component, and it just works?  In Vue, it's as easy as  &l...
Can anyone please help me on how to detect Webview button click event in React Native? As shown in the code below, I have a Button in my WebView (index.html) for which i want to detect click event from React Native and execute the method onClick. I h...
i have created an "hello-world" react app using create-react-app command, then i tried to run the same files using webpack, but it does not working properly, like .ico, .css files are not rendering to the screen.. please help me to solve this...
I could not find any explanation regarding the work of "npm run build",  It is simple and easy to use and i get the "build" folder that works great,  But, in create-react-app, what happens exactly behind the scene?  Is it a complete d...
Just ran an npm update on my web application and now Moment JS appears to be failing with the following message:  Error: Cannot find module "./locale" \node_modules\moment\src\lib\moment\prototype.js:1 > 1 | import { Moment } from './c...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.