mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Lints.
This commit is contained in:
parent
65cfdaef94
commit
3b8b7625b7
@ -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>;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user