-
Notifications
You must be signed in to change notification settings - Fork 0
DevTools
github-actions[bot] edited this page Aug 13, 2026
·
1 revision
@nrbx/react ships a DevTools backend that connects to the standalone React DevTools server, letting you inspect component trees, props, hooks, and state from your desktop.
import "@nrbx/react-devtools";
import React from "@nrbx/react";
import { createRoot } from "@nrbx/react-roblox";
const root = createRoot(new Instance("ScreenGui"));
root.render(<App />);With the standalone DevTools server running, the game connects to it on import and exposes the component tree for inspection while your UI runs in Studio or in a live session. The backend speaks the React 17-era wire protocol, so very new DevTools frontends may not support every panel. See the caveats page for details.
Use DevTools for:
- component tree validation
- prop inspection
- hook state debugging
- render timings and re-render loops
- context value problems
- unstable callback dependencies
This is especially helpful when a menu or HUD starts re-rendering too often or when a context object changes unexpectedly across the app.
A common workflow is:
- Launch the game with the DevTools package imported
- Open React DevTools
- Inspect the component tree and selected branch
- Check whether state changes are propagating to the correct nodes
- Use the tree to identify hidden render loops or duplicate providers