Last active
July 7, 2016 09:48
-
-
Save kazagkazag/6f18e060d0a44828722c894b1235f97f to your computer and use it in GitHub Desktop.
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
// MyButton.jsx | |
export default class MyButton extends Component { | |
render() { | |
return <button>Click me!</button> | |
} | |
} | |
// MyComponent.jsx | |
// import MyButton from "MyButton" | |
export class MyComponent extends Component { | |
render() { | |
return ( | |
<div className="my-div"> | |
My div content | |
<MyButton /> | |
</div> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment