Styles and fonts in the head tag of index.html are not reflecting for react.
See original GitHub issueIssue Description
I am trying to render the same project in code-sandbox and sandpack. Looks likes anything in the head of index.html
is not reflecting in the render output.
I am not sure, if the error is on the side of bundler or config of the project.
Here is the link for codesandbox --> https://codesandbox.io/s/1cugh?file=/public/index.html Here is the sandpack implementation to render the same project --> https://repl.teleporthq.io/project/9ea7c3fc-46b3-4dcb-bb01-01bdecdd99f1
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
create-react-app based projects added font but not working
Try importing the fonts in your app.css or index.css file. And try: ... just add this in head before your style tag.
Read more >Solving the React Error: Not Picking Up CSS Style | Pluralsight
In this guide, you will learn about the errors that can occur while importing a CSS file into your React file.
Read more >Styling Components - Cypress Documentation
Fonts : Everything is rendering in Times New Roman. Most applications handle fonts in one of two ways. Your index.html loads external fonts...
Read more >FAQs - styled-components
styled-components v5 does not introduce any breaking public API changes, ... your core index.html file (generated or static) within a typical <style> tag....
Read more >What's in the head? Metadata in HTML - MDN Web Docs
The head of an HTML document is the part that is not displayed in the web browser when the page is loaded. It...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
waiting for https://github.com/codesandbox/codesandbox-client/pull/5723 to be merged
I have to reopen this as I’m reverting a change in the bundler (conflict with some use cases in codesandbox)