Skip to content

Instantly share code, notes, and snippets.

@leomelin
Created April 4, 2016 15:00
Show Gist options
  • Save leomelin/ce0825d22cd42d1d789e5e3fdbd57846 to your computer and use it in GitHub Desktop.
Save leomelin/ce0825d22cd42d1d789e5e3fdbd57846 to your computer and use it in GitHub Desktop.
Wrong indent
const TestJSX =
<div>
<p>Hello, this is a test</p>
</div>
const Test2JSX = props => {
return (
<div>
<p>This is another test</p>
{props.children}
</div>
)
}
class Test extends React.Component {
constructor () {
super(props)
}
render () {
return (
<Test2JSX>
<TestJSX />
</Test2JSX>
)
}
}
const TestJSX =
<div>
<p>Hello, this is a test</p>
</div>
const Test2JSX = props => {
return (
<div>
<p>This is another test</p>
{props.children}
</div>
)
}
class Test extends React.Component {
constructor () {
super(props)
}
render () {
return (
<Test2JSX>
<TestJSX />
</Test2JSX>
)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment