|React Devtools Beta|
|Written by Alex Denham|
|Thursday, 06 August 2015|
When it came to the new Devtools, the developers decided to start again from scratch in order to create a defined API for dealing with internals. This would enable other tools to benefit without having to depend on implementation details, so that going forward the developers would have more freedom to refactor things internally without worrying about breaking tooling.
The existing version of the devtools is a fork of Blink's "Elements" pane, and is described by Jared Forsyth in a blog post about the new tools as:
“imperative, mutation-driven, and tightly integrated with Chrome-specific APIs”.
The new devtools are less tightly coupled to Chrome, and easier to reason about thanks to React.
In terms of features, the new version adds a new tree view of the devtools that the developers say gives a richer view of your props, including the contents of objects and arrays. Custom components are emphasized, and native components are de-emphasized. Stateful components have a red collapse, and props that change are highlighted in green.
Searching is another area that has been improved, as you can now select the search bar and start searching for a component by name.
As shown above, the Side Pane has also been revamped. It now shows the context for a component, and you can right-click to store a prop/state value as a global variable.
To be informed about new articles on I Programmer, install the I Programmer Toolbar, subscribe to the RSS feed, follow us on, Twitter, Facebook, Google+ or Linkedin, or sign up for our weekly newsletter.
or email your comment to: firstname.lastname@example.org
|Last Updated ( Thursday, 06 August 2015 )|