How to install and use Emotion in a Gatsby project.
Instructor: [00:00] First, we'll initialize a new Gatsby project with the default boilerplate. Then, we'll install Emotion Core and the Gatsby Emotion plugin. Now, we can open the gatsby-config.js and add our Emotion plugin.
[00:28] Next, we can start our Gatsby with yarn develop. We'll take the URL it gave us and put it into our browser. Next, we can go into our source folder and pages and open the index.js file. We're going to add some styles to the h1 tag.
[00:57] That's it. You've used Emotion for the first time.
Member comments are a way for members to communicate, interact, and ask questions about a lesson.
The instructor or someone from the community might respond to your question Here are a few basic guidelines to commenting on egghead.io
Be on-Topic
Comments are for discussing a lesson. If you're having a general issue with the website functionality, please contact us at support@egghead.io.
Avoid meta-discussion
Code Problems?
Should be accompanied by code! Codesandbox or Stackblitz provide a way to share code and discuss it in context
Details and Context
Vague question? Vague answer. Any details and context you can provide will lure more interesting answers!