https://github.com/roman01la/cljs-react-devtools
React DevTools for ClojureScript wrappers
https://github.com/roman01la/cljs-react-devtools
clojurescript devtools react reagent uix
Last synced: 17 days ago
JSON representation
React DevTools for ClojureScript wrappers
- Host: GitHub
- URL: https://github.com/roman01la/cljs-react-devtools
- Owner: roman01la
- License: epl-2.0
- Created: 2023-12-09T18:25:10.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-26T15:22:06.000Z (5 months ago)
- Last Synced: 2025-04-11T02:59:28.674Z (21 days ago)
- Topics: clojurescript, devtools, react, reagent, uix
- Language: Clojure
- Homepage: https://roman01la.github.io/cljs-react-devtools/
- Size: 13.6 MB
- Stars: 43
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
_React DevTools for ClojureScript wrappers_
> ⚠️ _EXPERIMENTAL_
https://github.com/roman01la/cljs-react-devtools/assets/1355501/c3bd8d6d-1127-4459-89ac-3b551d47da36
[*Live demo*](https://roman01la.github.io/cljs-react-devtools/)
[](https://clojars.org/com.github.roman01la/cljs-react-devtools)
## 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
```clojure
{:deps {com.github.roman01la/cljs-react-devtools {:mvn/version "0.2.0"}}}
```2. Create preload namespace and initialize DevTools
```clojure
(cljs-react-devtools.core/init!
{:root (js/document.getElementById "root") ;; React 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_](https://github.com/sponsors/roman01la)