Building and Documenting Components
In React, everything is a component. This paradigm allows us to split user interfaces into smaller parts, thus making it easier to develop applications. It also enables component reusability since we can reuse the same components in multiple places.
In this chapter, we will build some components that we will use as the application’s user interface base. This will make the application UI more consistent and easier to understand and maintain. We will also learn how to document the components with Storybook, a great tool that can serve as a catalog of common application components.
In this chapter, we will cover the following topics:
- Chakra UI
- Building components
- Documenting components
By the end of this chapter, we will learn how to create and document reusable components that we can use for the application.