roman01la / cljs-react-devtools

React DevTools for ClojureScript wrappers

Home Page:https://roman01la.github.io/cljs-react-devtools/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React DevTools for ClojureScript wrappers

⚠️ EXPERIMENTAL

Untitled.mp4

Live demo

Features

  • React components & DOM nodes tree
  • Visual picking and highlighting
  • Props, hooks, Reagent reactions and re-frame subscriptions inspector
  • Update reactions and subscriptions from the inspector
  • Click on a value in the inspector to log it to the console
  • Press a shortcut to toggle DevTools visibility
  • Bottom, left, right docking and undocking into a separate window

Supported React wrappers:

  • UIx
  • Reagent

Setup

  1. Install the library via Git deps
  2. Initialize DevTools
(cljs-react-devtools.core/init!
  {:root (js/document.getElementById "root")
   :shortcut "Control-Shift-Meta-R"}) ;; toggles DevTools visibility

Run example in this repo

  1. Install NPM deps
  2. Run clojure -A:examples -M -m shadow.cljs.devtools.cli watch examples
  3. Open http://localhost:3000/

Support development of the project via GitHub Sponsors program

About

React DevTools for ClojureScript wrappers

https://roman01la.github.io/cljs-react-devtools/

License:Eclipse Public License 2.0


Languages

Language:Clojure 99.9%Language:HTML 0.1%