This repository has been archived on 2024-06-24. You can view files and clone it, but cannot push or open issues or pull requests.
graphql-lightning-talk/assets/js/app.js

39 lines
989 B
JavaScript
Raw Normal View History

2018-04-08 09:20:53 +12:00
// Brunch automatically concatenates all files in your
// watched paths. Those paths can be configured at
// config.paths.watched in "brunch-config.js".
//
// However, those files will only be executed if
// explicitly imported. The only exception are files
// in vendor, which are never wrapped in imports and
// therefore are always executed.
// Import dependencies
//
// If you no longer want to use a dependency, remember
// to also remove its path from "config.paths.watched".
2018-04-08 13:20:13 +12:00
import "phoenix_html";
2018-04-08 09:20:53 +12:00
// Import local files
//
// Local files can be imported directly using relative
// paths "./socket" or full ones "web/static/js/socket".
// import socket from "./socket"
2018-04-08 13:20:13 +12:00
import React from "react";
import ReactDOM from "react-dom";
import Header from "./components/Header";
class App extends React.Component {
render() {
return (
<div class="container">
<Header />
</div>
);
}
}
ReactDOM.render(<App />, document.getElementById("face-gallery"));