mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-04-26 23:44:29 +00:00
Lints.
This commit is contained in:
@@ -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>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user