Tag: REACT.JS
reactjs – I am showing error on react JS so how can do solve problem?
Unexpected error. Please report it as a bug: Error: spawn UNKNOWN at ChildProcess.spawn (node:internal/child_process:412:11) at Object.spawn (node:child_process:698:9) at spawn (C:UsersTriotreeAppDataRoamingnpmnode_modulescreate-react-appnode_modulescross-spawnindex.js:12:24) at C:UsersTriotreeAppDataRoamingnpmnode_modulescreate-react-appcreateReactApp.js:390:19 at new Promise (<anonymous>) at install (C:UsersTriotreeAppDataRoamingnpmnode_modulescreate-react-appcreateReactApp.js:341:10) at…
reactjs – How to test React.js page that uses Context and useEffect?
I’m having trouble testing a page that has Context and useEffect using Jest and Testing-library, can you help me? REPO: github.com/jefferson1104/padawan My Context: src/context/personContext.tsx import { createContext, ReactNode, useState }…
javascript – React js application is not starting to port 3000
I am trying to start the react application and by default it opens localhost:3000/portfolio and web page shows blank. and when I change the url to localhost:3000 from browser then…
reactjs – How can I create buttons like select option in react.js?
I use this API: mui.com/components/menus/#customization I want to create something like the select option with the button, and if a value is selected, the same value will be set as…
Arrow syntax functions in React – React.js
This question is dealing with a step for the Animal Fun Facts project. (www.codecademy.com/courses/react-101/projects/js-react-animal-fun-facts) Specifically, for step 9, we must create a event handler function – {displayFact(e)} I originally defined…