Top "React-functional-component" questions

React - How to force a function component to render?

I have a function component, and I want to force it to re-render. How can I do so? Since there's …

javascript reactjs react-functional-component
React - useRef with TypeScript and functional component

I was trying to call the child component method from parent component and I was trying to use useRef. In …

reactjs typescript ref tsx react-functional-component
How to use Async / Await with React hooks?

I am learning React and following a video tutorial. The instructor used class components and I'm using functional components to …

reactjs react-hooks react-functional-component react-class-based-component
Uncaught ReferenceError: regeneratorRuntime is not defined in React

I'm getting an error "Uncaught ReferenceError: regeneratorRuntime is not defined". Please help me to find out the error and how …

reactjs frontend react-functional-component
React Component Not Updating After Changing A Value

In ReactJS, I'm writing a stateless component; Since I've read avoiding unnecessary states is best practice. The component represents an …

reactjs react-hooks react-state react-functional-component react-class-based-component
Fetching data in React's useEffect() returns "undefined"

I'm trying to fetch data from a database. It's a get request. All works fine as long I am using …

javascript reactjs promise use-effect react-functional-component