Last active
February 19, 2016 05:32
-
-
Save sophistifunk/ce4089bd8fa9f9f81630 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
import React, {Component} from 'react'; | |
function Alpha(props) { | |
console.log("Alpha props.className", props.className); | |
return <strong className="onStrong">Alpha</strong>; | |
} | |
function Bravo(props) { | |
console.log("Bravo props.className", props.className); | |
return <Alpha className="san"/>; | |
} | |
function Charlie(props) { | |
console.log("Charlie props.className", props.className); | |
return <Bravo className="ni"/>; | |
} | |
export default class App extends Component { | |
render() { | |
return ( | |
// Add your component markup and other subcomponent references here. | |
<div> | |
<h1>Hello, World!</h1> | |
<Charlie className="ichi"/> | |
</div> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment