Isolate fetch using custome hook: To use this custom hook, you would simply import it into your component and call
Category: Reactjs
React Related Commands
Create a react app npx create-react-app project_name Start development server cd project_name npm start See ESLin configurations npm ls eslint
Server side events
Event Source API An EventSource instance opens a persistent connection to an HTTP server, which sends events in text/event-stream format. The connection remains open until closed by calling EventSource.close().
REACT interview questions
What is “prop drilling” and how to prevent it pass the state as “props” through each nested component UseContext hook
React Hooks
Hooks can only be called inside React function components. Hooks can only be called at the top level of a
React App to AWS Amplify
AWS tutorial Github domain hosting create github repo clone github repo create react app npx create-react-app . 4. add all
React Debugging
JSX expressions must have one parent element. Wrap all elements in render function under one <div></div> or <Fragment></Fragment> Warning: Each
Run Reactjs Sample Program
Install node.js and npm install create-react-app by the following command in cmd: npm install -g create-react-app This will create a