React interview questions
My preparation notes for React interviews

Search for a command to run...
My preparation notes for React interviews

Follow these instructions in your basic Remix.js project to connect your existing MongoDB to your app. In your terminal, install these packages as a dev dependency. This command is for Remix.js project set with Typescript settings. So typescript will...
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...
When coding React, I use React plus Typescript pattern a lot. Also, you import { FC } from "react" interface OptionsProps { } export const Options: FC<OptionsProps> = () => { return ( <> </> ) } So, I made a snippet in VS-Code to red...
So, 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...
Even the most experienced developers sometimes make mistakes while using this in JavaScript or TypeScript ( I am learning Typescript now... LOL) In simple terms, this is going to be equal to the left of the function call. const holi = { color: "...
Simple to understand and reusable fetcher method In all projects, where I fetch with the rest API, I use the in-built fetch method all the time. I always avoid third-party libraries like axios. fetch takes two parameters. I will add basic used para...
Sometimes, we want to run some scripts in a parallel manner. Concurrently package helps you just do that. npm install concurrently I want to add all scripts under names starting with start, so I don't have to type names in concurrently script. I d...