First, clone the repository to your local machine:
git clone <repository-url>
Next, navigate to the project directory: cd
npm install
Go to the src/main.tsx file and comment out the code for the challenge you want to run. For example, to run challenge 1, comment out the code for challenge 2.
For challenge 3, you will need to run the code in the terminal.
npm install -g typescript
Then, run the following command:
tsc src/answers/challenge3.ts
this will create a new file called challenge3.js in the src/answers directory.
Then, run the following command:
node src/answers/challenge3.js
To run the code, use the following command:
npm start
The answers to the challenges can be found in the src/answers directory:
Challenge 1: src/answers/challenge1.tsx
Challenge 2: src/answers/challenge2.tsx
Challenge 3: src/answers/challenge3.ts