How to do it…

Installing styled-components is quite simple—and note this is not a development dependency, because you'll be actually using the package in your production code, not as a separate preprocessing step or anything like that:

npm install styled-components --save

We will be using tagged template literals (which we earlier saw in the Working with strings section of Chapter 2, Using Modern JavaScript features), so you may want to refresh that part of the book. 

Working with Flow won't be a problem, because styled-components is well supported by it, so we won't have to do anything in particular. Finally, for VSC you might want to use the vscode-styled-components extension to add syntax highlighting.

Read the full documentation for styled-components at https://www.styled-components.com/docs.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.226.251.70