The Lynx Devtool Panel that allows you to inspect a ReactLynx component hierarchy, including props and state.
We need to import @lynx-js/preact-devtools somewhere to initialize the connection
to Preact Devtools Panel. Make sure that this import is the first import in your
whole app.
import '@lynx-js/preact-devtools'See the documentation of Preact Devtools Panel in Lynx Devtool for more information.
ldt-plugincontains the source code of Preact Devtools Panel in Lynx Devtool. Run it bynpm run dev:ldt-pluginwhen developing, andnpm run build:ldt-pluginto build it.srccontains the source code for ReactLynx App to setup Preact Devtools related hooks. You can build it just bynpm run build:libin the root folder of this repository.
The ReactLynx App will communicate with the Preact Devtools Panel in Lynx Devtool using CDP messages.
Thanks to:
- Preact Devtools for the original Devtools implementation for Preact.