rsnext/packages/next-swc/crates/styled_jsx/tests/fixture/dynamic-this-in-arrow/input.js
Donny/강동윤 16f7084e7f
feat(next-swc): Update swc crates (#35996)
* 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
2022-04-11 11:59:16 +02:00

41 lines
1 KiB
JavaScript

// TODO
// import React, { Component } from 'react'
// export default class Index extends Component {
// static getInitialProps() {
// return { color: 'aquamarine' }
// }
// render() {
// return (
// <div>
// {[1, 2].map(idx => (
// <div key={idx}>
// {[3, 4].map(idx2 => (
// <div key={idx2}>{this.props.color}</div>
// ))}
// </div>
// ))}
// {[1, 2].map(idx => (
// <div key={idx}>
// <div>
// {this.props.color}
// <div className="something">
// <React.Fragment>
// <div>
// <div>{this.props.color} hello there</div>
// </div>
// </React.Fragment>
// </div>
// </div>
// </div>
// ))}
// <style jsx>{`
// div {
// background: ${this.props.color};
// }
// `}</style>
// </div>
// )
// }
// }