raxjs / rax-devtools

An extension that allows inspection of Rax components.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rax Developer Tools

Rax Developer Tools lets you inspect the Rax component's structure, props and state.

Go to Chrome extension store to install this extension.

Pre-packaged

The official extensions represent the current stable release.

Usage

  1. Install the Chrome Rax Developer Tools extension
  2. Import the "rax/lib/devtools" module in your app
import 'rax/lib/devtools';
  1. Set process.env.NODE_ENV to 'development'
  2. Reload and go to the 'Rax' tab in the browser's development tools

Tree View

  • Arrow keys or hjkl for navigation
  • Right click a component to show in elements pane, scroll into view, show source, etc.
  • Differently-colored collapser means the component has state/context

Side Pane

  • Right-click to store as global variable
  • Updates are highlighted

Search Bar

  • Use the search bar to find components by name

Handy Tips

Finding Component by a DOM Node

If you inspect a Rax element on the page using the regular Elements tab, then switch over to the Rax tab, that element will be automatically selected in the Rax tree.

Finding DOM Node by a Component

You can right-click any Rax element in the Rax tab, and choose "Find the DOM node". This will bring you to the corresponding DOM node in the Elements tab.

About

An extension that allows inspection of Rax components.

License:Other


Languages

Language:JavaScript 94.4%Language:HTML 5.1%Language:CSS 0.4%Language:Makefile 0.0%Language:Shell 0.0%