This commit is contained in:
Daniel Rosenwasser 2017-05-30 01:17:26 -07:00
parent 65cfdaef94
commit 3b8b7625b7

View File

@ -2,21 +2,21 @@ import * as React from 'react';
import { Route } from 'react-router';
function RouteWithFunctionChildrenAttribute() {
return <Route path="/" children={() => <div>Hello!</div>} />
return <Route path="/" children={() => <div>Hello!</div>} />;
}
function RouteWithFunctionJsxChildren() {
return <Route path="/">
{() => <div>Hello!</div>}
</Route>
</Route>;
}
function RouteWithElementChildrenAttribute() {
return <Route path="/" children={<div>Hello!</div>} />
return <Route path="/" children={<div>Hello!</div>} />;
}
function RouteWithElementJsxChildren() {
return <Route path="/">
{<div>Hello!</div>}
</Route>
}
</Route>;
}