Last active
October 9, 2018 15:05
-
-
Save bedirhankaradogan/a57a1eaeb1ea2daaae1968aef8b6ef4d 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 from "react"; | |
| import ReactDOM from "react-dom"; | |
| class ClassComponent extends React.PureComponent { | |
| render() { | |
| return "I'm the class component"; | |
| } | |
| } | |
| const RenderClassComponents = () => { | |
| return <ClassComponent />; | |
| } | |
| const rootElement = document.getElementById("root"); | |
| ReactDOM.render(<RenderClassComponents />, rootElement); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment