43 lines
1.2 KiB
JavaScript
43 lines
1.2 KiB
JavaScript
// 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".
|
|
import "phoenix_html";
|
|
|
|
// Import local files
|
|
//
|
|
// Local files can be imported directly using relative
|
|
// paths "./socket" or full ones "web/static/js/socket".
|
|
|
|
// import socket from "./socket"
|
|
|
|
import React from "react";
|
|
import ReactDOM from "react-dom";
|
|
import { ApolloProvider } from 'react-apollo';
|
|
import Header from "./components/Header";
|
|
import Gallery from "./components/Gallery";
|
|
import client from "./client";
|
|
|
|
class App extends React.Component {
|
|
render() {
|
|
return (
|
|
<ApolloProvider client={client}>
|
|
<div className="container">
|
|
<Header />
|
|
<Gallery />
|
|
</div>
|
|
</ApolloProvider>
|
|
);
|
|
}
|
|
}
|
|
|
|
ReactDOM.render(<App />, document.getElementById("face-gallery"));
|