main
js 45 lines 1.27 KB
Raw
1 /**
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 *
7 * @flow
8 */
9
10 import * as React from 'react';
11 import {Fragment} from 'react';
12 import UnserializableProps from './UnserializableProps';
13 import CircularReferences from './CircularReferences';
14 import Contexts from './Contexts';
15 import CustomHooks from './CustomHooks';
16 import CustomObject from './CustomObject';
17 import EdgeCaseObjects from './EdgeCaseObjects.js';
18 import NestedProps from './NestedProps';
19 import SimpleValues from './SimpleValues';
20 import SymbolKeys from './SymbolKeys';
21 import UseMemoCache from './UseMemoCache';
22 import UseEffectEvent from './UseEffectEvent';
23 import UseSyncExternalStore from './UseSyncExternalStore';
24
25 // TODO Add Immutable JS example
26
27 export default function InspectableElements(): React.Node {
28 return (
29 <Fragment>
30 <h1>Inspectable elements</h1>
31 <SimpleValues />
32 <UnserializableProps />
33 <NestedProps />
34 <Contexts />
35 <CustomHooks />
36 <CustomObject />
37 <EdgeCaseObjects />
38 <CircularReferences />
39 <SymbolKeys />
40 <UseMemoCache />
41 <UseEffectEvent />
42 <UseSyncExternalStore />
43 </Fragment>
44 );
45 }