Skip to content
Permalink
Browse files

create hello world with react.js

  • Loading branch information
eitoball committed May 18, 2015
1 parent 6beec78 commit 413e8d2894728e6c8d4a9ba48ceecd19ac5c307b
Showing with 8 additions and 1 deletion.
  1. +7 −0 react_phoenix/web/static/js/app.js
  2. +1 −1 react_phoenix/web/templates/hello_world/index.html.eex
@@ -5,6 +5,13 @@ import {Socket} from "phoenix"
// socket.join("topic:subtopic", {}).receive("ok", chan => {
// })

$(function() {
React.render(
<h2 className="jumbotron">Hello from React!</h2>,
document.getElementById('hello_world')
);
});

let App = {
}

@@ -1 +1 @@
<h2>HelloWorld#index</h2>
<div id="hello_world"></div>

0 comments on commit 413e8d2

Please sign in to comment.
You can’t perform that action at this time.