Last active
October 18, 2018 14:28
-
-
Save jehna/c19436e4e625520eaaa4266901eee596 to your computer and use it in GitHub Desktop.
React CSS error highlighter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[class*="undefined"], | |
[class*="null"] { | |
border: red 5px solid !important; | |
background: #0f0 !important; | |
color: #00f !important; | |
} | |
[class*="undefined"]::after, | |
[class*="null"]::after { | |
content: "YOU HAVE AN ERROR IN YOUR CODE" !important; | |
position: fixed !important; | |
top: 0 !important; | |
left: 0 !important; | |
border: red 5px solid !important; | |
background: #0f0 !important; | |
color: #00f !important; | |
font-size: 30px !important; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Highlights your erroronous code like this:

https://jsfiddle.net/rm65wo1b/