Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
This app contains only one view - a signUp form. The signUp form has its own model which determines what to show. Model is selected based on the language set.
- E-mail address input (required)
- Age checkbox (required)
- Newsletter subscription checkbox (optional)
- Gender radio buttons (optional)
Required fields are validated with each change.
After completing all required fields we can click SIGN UP button, all required fields are validated again. A request is send when everything is filled correctly, otherwise all incorrect fields become red.
After sending a request a user receives information whether account has been created or not.
- React - is responsible for building user interfaces, managing a state of an application and its view.
- React Router DOM - provides Routing to our React App
- i18next - it is complex framework which provides tools to create multilingual applications in a simple and transparent way.
- PropTypes - provides types to applications thus comonent's props can be validated, it helps find bugs in our application.