Skip to content

Instantly share code, notes, and snippets.

@bedirhankaradogan
Last active October 9, 2018 15:06
Show Gist options
  • Select an option

  • Save bedirhankaradogan/60734c3d3a5361e1237c7472ab3cd309 to your computer and use it in GitHub Desktop.

Select an option

Save bedirhankaradogan/60734c3d3a5361e1237c7472ab3cd309 to your computer and use it in GitHub Desktop.
import React from "react";
import ReactDOM from "react-dom";
class ClassComponent extends React.Component {
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