Skip to content

Commit ba994f0

Browse files
committed
Build out rest api example with async form handling
1 parent 5cd5d0b commit ba994f0

File tree

22 files changed

+445
-6620
lines changed

22 files changed

+445
-6620
lines changed

examples/rest-api/src/app/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<html>
22
<head>
33
<title>Rest API Example</title>
4-
<link rel="stylesheet" href="/bootstrap.css" media="all">
4+
<link rel="stylesheet" href="primer.css" media="all">
55
</head>
66
<body>
77
<div id="app"></div>

examples/rest-api/src/app/main.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,12 @@
22
* Main entry point
33
*/
44
var User = require('../modules/user')
5-
window.User = User
5+
var App = require('../components/app')
6+
7+
var React = require('react');
8+
window.React = React; // export for http://fb.me/react-devtools
9+
10+
React.render(
11+
<App />,
12+
document.getElementById('app')
13+
);

0 commit comments

Comments
 (0)