question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add in the documentation what emotion is used for in the integration with Nextjs

See original GitHub issue
  • I have searched the issues of this repository and believe that this is not a duplicate.

Summary 💡

I’m implementing Material UI in Next.js v10 using the examples from the same Material UI repository, but I can’t understand the reason for using the emotion library, I know it’s to create a css cache, but why is this necessary? ?

In the documentation there is nothing about it and I think it should indicate why the use of emotion.

Examples 🌈

In the documentation there is nothing about it and I think it should indicate why the use of emotion.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
vicasascommented, Dec 10, 2020

@mnajdova I get it! and of course there was a confusion with the versions of the documentation.

In the same way, the use of emotion is not very clear to me. Perhaps a couple of lines could be added to the Installation page commenting on why its use? Or a full page to document about this new integration in v5, because I couldn’t find it in the documentation.

And for those who come to the Next examples template, maybe indicate that emotion is not something for next but rather Material UI with a link to the documentation that I think it should have.

And finally thank you very much for the clarification 😁😁

1reaction
eps1loncommented, Dec 10, 2020

In the documentation there is nothing about it and I think it should indicate why the use of emotion.

Agreed. Our examples should be overly verbose with technical decisions. Whether this happens in the readme or code is not important to me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add in the documentation what emotion is used for in ... - GitHub
I'm implementing Material UI in Next.js v10 using the examples from the same Material UI repository, but I can't understand the reason for ......
Read more >
Server Side Rendering - Emotion
To use emotion's SSR with Next.js you need a custom Document component in pages/_document.js that renders the styles and inserts them into the...
Read more >
Advanced Features: Next.js Compiler
Learn about the Next.js Compiler, written in Rust, which transforms and minifies your Next.js application.
Read more >
Next.js 11 setup with Material UI Version 5 | Part 1 - Emotion
Some of our favorite libraries have gone through some major upgrade versions. In this video, I look at how to set up the...
Read more >
Next.Js + MUI v5 tutorial - DEV Community ‍ ‍
Step two: Installing emotion. as the MUI docs says: The default style library used for generating CSS styles for MUI components is emotion....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found