Summary
In this chapter, we first went over the history of UI components by looking at four libraries – jQuery, Angular, React, and LitElement – to get an idea of having a component and how components are put together to build an application. Then, we learned what a function component is, with an introduction to its props and parent/child relationship. We then learned how to write a function component in general, and finally, we built a Nav
component step by step.
In the next chapter, we will craft a state of the function component from scratch and see how actions can benefit from it.