How do I initialize CSS in Next.js?

Asked 1 years ago, Updated 1 years ago, 107 views

Hi, how are you?

I have a question while I was working on the next.js project.

When developing a project other than next, I made a reset.css file like the code below and used it I wonder where to do this in next.js.

/* reset.css */
 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
   }

next.js reactjs css

2022-09-21 13:52

1 Answers

When rendering components

<style jsx>{`
     // make here.   
`}</style>

I remember writing it inside the style tag When applied globally, I think they made a separate js file and returned it like a component.


2022-09-21 13:52

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.