Let’s talk about styling. So far we’ve been using the style prop to kind of hack together our colors changing and stuff like that when we were focusing mostly on the logic of our components, but there are better ways to do that stuff. There are three basic approaches to styling react components, and they all have the same goal in mind. The idea is that you can build for yourself something like a UI tool kit where you have prestyled components that take care of themselves, and you put them anywhere on the page and they always look the same. So, a button is always a button. The component that you’re using is taking care of its own styling, and it doesn’t have to be decided by the rest of your applications.
Know someone who wants to learn React and its whole ecosystem? Share 👇