react/packages/react-devtools/index.js

15 lines
432 B
JavaScript
Raw Normal View History

2019-08-28 01:54:01 +08:00
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
2019-08-28 01:54:01 +08:00
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
2019-08-14 08:58:03 +08:00
const {connectToDevTools} = require('react-devtools-core/backend');
// Connect immediately with default options.
// If you need more control, use `react-devtools-core` directly instead of `react-devtools`.
connectToDevTools();