Skip to content

Instantly share code, notes, and snippets.

@zeusdeux
Created August 30, 2019 12:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zeusdeux/94f099c0481700a5e4f8bed396fe7ef8 to your computer and use it in GitHub Desktop.
Save zeusdeux/94f099c0481700a5e4f8bed396fe7ef8 to your computer and use it in GitHub Desktop.
How to cress?
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