# `react-devtools-inline` This package can be used to embed React DevTools into browser-based tools like [CodeSandbox](https://codesandbox.io/), [StackBlitz](https://stackblitz.com/), and [Replay](https://replay.io). If you're looking for the standalone React DevTools UI, **we suggest using [`react-devtools`](https://github.com/facebook/react/tree/main/packages/react-devtools) instead of using this package directly**. --- > **Note** that this package (and the DevTools UI) relies on several _experimental_ APIs that are **only available in the [experimental release channel](https://reactjs.org/docs/release-channels.html#experimental-channel)**. This means that you will need to install `react@experimental` and `react-dom@experimental`. --- # Usage This package exports two entry points: a frontend (to be run in the main `window`) and a backend (to be installed and run within an `iframe`1). The frontend and backend can be initialized in any order, but **the backend must not be activated until the frontend initialization has completed**. Because of this, the simplest sequence is: 1. Frontend (DevTools interface) initialized in the main `window`. 1. Backend initialized in an `iframe`. 1. Backend activated. 1 Sandboxed iframes are supported. # Backend APIs ### `initialize(windowOrGlobal)` Installs the global hook on the window/global object. This hook is how React and DevTools communicate. > **This method must be called before React is loaded.** (This includes `import`/`require` statements and `