React-hooks Questions

Ad
Ad
Ad

React useEffect hook infinity loop

I keep encountering an infinity loop when trying to use the useeffect hook to fetch and set data. ive tried 3 variations of the hook and they all
Ad
Ad

Destructuring an object in TS

I have this ts code, and i want to make that part to be also typed : const { data: { person, car, another } }: any =

Array split React Hooks

I want to split an array into two arrays. the problem is main array which i want to split into two is coming from server.and i need to

useState object set

I am new to reactjs and working with hooks. i want to set state for object. here is my code: const startpage = (props)=> {
Ad
Ad
Ad
Ad
Ad
Ad

Blog Categories

Ad