Summary
In this chapter, we discussed two vital concepts in React: forms and routing. We highlighted the subtle difference in the forms that are set up in non-React and React applications. React provides tons of improvement in how it handles form elements through the use of controlled and uncontrolled form components to enhance the user experience.
Then, we delved into validation concepts and how you can implement validation rules in React. We then spoke about React Router. We demonstrated how React Router, a third-party library, enables us to navigate complex React applications. We discussed the use of Route
, Links
, and nested Routes
and explored how they are used in a React project.
In the next chapter, we will learn about and understand how to implement testing in React applications. Testing is an essential part of software development as it ensures the components of an application work as they should and that the relevant best practices are observed in development.