main
js 35 lines 921 Bytes
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
12 import styles from './Profiler.css';
13
14 export default function ProfilingNotSupported(): React.Node {
15 return (
16 <div className={styles.Column}>
17 <div className={styles.Header}>Profiling not supported.</div>
18 <p className={styles.Paragraph}>
19 Profiling support requires either a development or profiling build of
20 React v16.5+.
21 </p>
22 <p className={styles.Paragraph}>
23 Learn more at{' '}
24 <a
25 className={styles.Link}
26 href="https://fb.me/react-devtools-profiling"
27 rel="noopener noreferrer"
28 target="_blank">
29 reactjs.org/link/profiling
30 </a>
31 .
32 </p>
33 </div>
34 );
35 }