Preparing for a journey through the React universe, we need a suitable spaceship to take us on this fascinating adventure. That ship will be our development environment, which we must properly configure so our journey goes smoothly.
A well-configured development environment is the foundation for effective work with React. It allows you to:
Imagine trying to build an advanced spaceship without the right tools - it would be extremely difficult and time-consuming. The same goes for creating React applications without a proper environment.
Before we start configuring our React environment, let's make sure we have all the necessary tools installed:
Once we have these basic tools, we can proceed to configure the React environment.
There are two main approaches to React environment configuration:
For beginners, we definitely recommend the second approach, as it allows you to focus on learning React rather than configuration details.
In our course, we'll be using Vite - a modern tool officially recommended by the React documentation for creating new projects. Create React App (CRA) has been deprecated and is no longer maintained.