Created
August 30, 2019 12:12
-
-
Save zeusdeux/94f099c0481700a5e4f8bed396fe7ef8 to your computer and use it in GitHub Desktop.
How to cress?
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
import React from 'react' | |
import { Cress } from './path/to/Cress.js'; | |
// looks like dead-code right? | |
new Cress('.my-selector', { | |
css() { | |
return ` | |
this { | |
font-family: cursive; | |
} | |
` | |
} | |
}); | |
export default function() { | |
return <p className="my-selector">this.this you say</p> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment