Overview
React TypeScript: Migrate useState - 1
Questions are deprecated!
These are the interview practice questions from the legacy versions of Frontend Hire. Only the ones with a video solution are available. Moving forward, we won't be releasing more questions as this is not our strongest content.
In case of any issues, contact us on Discord
Setup Question in Local
If you do not have pnpm installed, run the following command:
npm install -g pnpmThen run the following commands:
git clone https://github.com/yaralahruthik/fh-react.git
cd fh-react
pnpm install
cd ts-migrate-use-state-1
pnpm installRun the dev server and open the respective dev URL as shown by Vite in your browser.
pnpm devQuestion
Remember our question "Hooks: useState - 1" but that was in JavaScript. Try to migrate it to TypeScript.
Why did the TypeScript developer quit their job working on a React project? They couldn't handle all the 'prop'-erty damage!
Objectives
- Migrate all the
.js, .jsxfiles to.ts, .tsxfiles. - Make sure there is no use of
anytype in the code.
Resources to Refer
Promote your product or service here
Get in front of thousands of frontend developers and tech enthusiasts with our advertising slots.
GreatFrontEnd has better questions!
We don't create questions because GreatFrontEnd already has the best possible library of questions and we recommend the same to our community.
Last updated on