styled_jsx 18.0.0

AST transforms visitor for styled-jsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
export default function IndexPage() {
  return (
    <div>
      <h1>Hello World.</h1>

      <style jsx global>{`
        @supports (display: flex) {
          h1 {
            color: hotpink;
          }
        }
      `}</style>
    </div>
  );
}