React interview questionsMy preparation notes for React interviews15 min read·aniketicloud.hashnode.devMay 17, 2024
Progress bar trick with Number()So, there is a quiz app(Vite + React + TS (react-ts-msw-quiz-app.vercel.app)) that shows a single question and four answers. If I click on the answer, I want the progress bar to be updated. So here is the solution. Look how the progress bar increases...2 min read·aniketicloud.hashnode.devOct 19, 2023
VS Code snippet: console.log(), React FCCommon snippet to create a function component in React Typescript2 min read·aniketicloud.hashnode.devOct 15, 2023
Typescript useReducer error solved when adding new stateSo, this is just for my reference. previously I had this code. import { useEffect, useReducer } from "react"; import { questionsApi } from "../constants"; import { Loader } from "../components/Loader"; import { Error } from "../components/Error"; imp...4 min read·aniketicloud.hashnode.devOct 15, 2023