Skip to content

Instantly share code, notes, and snippets.

@calendee
Last active September 21, 2018 12:08
Show Gist options
  • Save calendee/69147a373994add5c2834ac4406fbee1 to your computer and use it in GitHub Desktop.
Save calendee/69147a373994add5c2834ac4406fbee1 to your computer and use it in GitHub Desktop.
import React from "react";
import ReactDOM from "react-dom";
import "./styles.css";
const App = props =>
console.log(JSON.stringify(props, null, 4)) || (
<div className="App">
<h1>Hello CodeSandbox</h1>
<h2>Start editing to see some magic happen!</h2>
</div>
);
const rootElement = document.getElementById("root");
ReactDOM.render(<App options={{ a: 1, b: 2 }} />, rootElement);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment