16f7084e7f
* Move * Adjust * publish = false * Tree * Move tests * fixup * Split `emotion` * Split `styled_jsx` * Split `styled_jsx` * fmt * `--fix` * clippy * Update crates * fixup * publish * Bump * Rename * authors * Update * More update * Oh * Update test refs * Update test refs * Update again * Fix
32 lines
543 B
JavaScript
32 lines
543 B
JavaScript
export default class {
|
|
render() {
|
|
const Element = 'div'
|
|
|
|
return (
|
|
<Element className="root">
|
|
<p>dynamic element</p>
|
|
<style jsx>{`
|
|
.root {
|
|
background: red;
|
|
}
|
|
`}</style>
|
|
</Element>
|
|
)
|
|
}
|
|
}
|
|
|
|
const Element2 = 'div'
|
|
export const Test2 = class {
|
|
render() {
|
|
return (
|
|
<Element2 className="root">
|
|
<p>dynamic element</p>
|
|
<style jsx>{`
|
|
.root {
|
|
background: red;
|
|
}
|
|
`}</style>
|
|
</Element2>
|
|
)
|
|
}
|
|
}
|