styled_jsx 2.0.0

AST transforms visitor for styled-jsx
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import _JSXStyle from "styled-jsx/style";
export default function Home() {
    return <>
            <div className={"jsx-762285c3ffa56b0" + " " + "container"}>
                container (should be blue)

                <div className={"jsx-762285c3ffa56b0" + " " + "child"}>
                    this should be green
                </div>
            </div>


            <_JSXStyle id={"762285c3ffa56b0"}>{".container.jsx-762285c3ffa56b0{color:#00f;padding:3rem}div.child{color:green}"}</_JSXStyle>
        </>;
}