Skip to content

Instantly share code, notes, and snippets.

@sophistifunk
Last active February 19, 2016 05:32
Show Gist options
  • Save sophistifunk/ce4089bd8fa9f9f81630 to your computer and use it in GitHub Desktop.
Save sophistifunk/ce4089bd8fa9f9f81630 to your computer and use it in GitHub Desktop.
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