We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We should look into this as a way to reduce runtime costs! And set us up for zero-config SSR:
https://babeljs.io/blog/2017/09/11/zero-config-with-babel-macros
so using the babel macro we could go from this:
/** @jsx jsx */ import { css, jsx} from '@trousers/core' const styles = css` color: white; `; const Button = props => { const classNames = useStyles(styles, props); return <button className={buttonClassNames}>{props.children}</button>; }; export default Button;
to this:
/** @jsx jsx */ import { css, jsx} from '@trousers/macro' const styles = css` color: white; `; const Button = props => { return <button css={styles}>{props.children}</button>; }; export default Button;
The text was updated successfully, but these errors were encountered:
No branches or pull requests
We should look into this as a way to reduce runtime costs!
And set us up for zero-config SSR:
https://babeljs.io/blog/2017/09/11/zero-config-with-babel-macros
so using the babel macro we could go from this:
to this:
The text was updated successfully, but these errors were encountered: