The task was to create a form for company and employee data. The project was made with React, Typescript, and Tailwind.
The user can add employees up to a hundred, and the form will dynamically render the employee sections.
After the data passes all validations, it gets sent to a fictional endpoint, and the sent data is shown on the screen in JSON format.
The project is hosted with Firebase: https://job-interview-exercise.web.app/
- Form components in the components folder handle the UI of the app, and process the incoming data.
- Contexts hold the employee and company data itself, so all of the form components can access them.
- There are two utils: ValidationUtil for form validation, and submitDataUtil for the POST API request.
- Clone this repository
git clone https://github.com/SLorant/ReactInterviewTask.git
- Navigate to project directory and install dependencies using npm:
cd ReactInterviewTask
npm install
- Start the development server:
npm run dev
Made by Lorant Sutus.