mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-27 03:08:06 +00:00
Add flow types; related to #24
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
* Copyright (c) 2013-present, Facebook, Inc.
|
||||
*
|
||||
* @emails react-core
|
||||
* @flow
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
@@ -19,7 +20,12 @@ import {createLinkDocs} from 'utils/createLink';
|
||||
import findSectionForPath from 'utils/findSectionForPath';
|
||||
import {sectionListDocs} from 'utils/sectionList';
|
||||
|
||||
const ErrorPage = ({data, location}) => (
|
||||
type Props = {
|
||||
data: Object,
|
||||
location: Location,
|
||||
};
|
||||
|
||||
const ErrorPage = ({data, location}: Props) => (
|
||||
<Flex
|
||||
direction="column"
|
||||
grow="1"
|
||||
|
||||
Reference in New Issue
Block a user