Created
April 4, 2016 15:00
-
-
Save leomelin/ce0825d22cd42d1d789e5e3fdbd57846 to your computer and use it in GitHub Desktop.
Wrong indent
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | |
) | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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