mirror of
https://github.com/facebook/react.git
synced 2026-02-27 03:07:57 +00:00
* Move preprocessData into a web worker * Add UI feedback for loading/import error states * Terminate worker when done handling profile * Add display density CSS variables
35 lines
856 B
JavaScript
35 lines
856 B
JavaScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @flow
|
|
*/
|
|
|
|
// Reach styles need to come before any component styles.
|
|
// This makes overriding the styles simpler.
|
|
import '@reach/menu-button/styles.css';
|
|
import '@reach/tooltip/styles.css';
|
|
|
|
import * as React from 'react';
|
|
|
|
import {SchedulingProfiler} from './SchedulingProfiler';
|
|
import {useBrowserTheme, useDisplayDensity} from './hooks';
|
|
|
|
import styles from './App.css';
|
|
import 'react-devtools-shared/src/devtools/views/root.css';
|
|
|
|
export default function App() {
|
|
useBrowserTheme();
|
|
useDisplayDensity();
|
|
|
|
return (
|
|
<div className={styles.DevTools}>
|
|
<div className={styles.TabContent}>
|
|
<SchedulingProfiler />
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|