Import JavaScript Variables for Styling with CSS-in-JS

InstructorOleg Isonen

Share this video with your friends

Send Tweet

As your application grows, you probably want to split variables into separate files. You may want to share those variables with a different part of the application as well as logically separate them so that you can find them easier.

We will learn how to use JavaScript import statement for CSS in JS as a replacement for @import directive and what are the important differences for a large code base. We will also learn some basics about JavaScript modules.