Skip to content

Instantly share code, notes, and snippets.

@lcoenen
Created February 28, 2019 11:46
Show Gist options
  • Save lcoenen/f83e087601702aaaf8f3b565b94a38e3 to your computer and use it in GitHub Desktop.
Save lcoenen/f83e087601702aaaf8f3b565b94a38e3 to your computer and use it in GitHub Desktop.

How to use CSS on Github

JSX is the language we use in React. This is NOT HTML, albeit it is similar, but they are rules to respect when it comes to CSS:

  1. To link a class to a tag, use the following synthax:
  1. NEVER use inline styling

NO! WRONG!

  1. Use camelCase to capitalise classname

ERROR! YOU SHOULD USE "bigTitle"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment