React JSON Viewer Component, Extracted from redux-devtools
(From #39 - thanks @codeheroics )
(From #33 - thanks @axelson)
(From #35 - thanks @alexkuz)
(there's a lot of changes, I'm sorry for that, it probably shouldn't be in one PR)
Object
, Array
or Iterable
has more than collectionLimit
entries (50
by default), only collectionLimit
entries are shown, the rest are grouped recursively (so than not more than collectionLimit
groups are shown). If collectionLimit = 0
, all items are shown.Example screencast (as a part of redux-devtools-inspector):
postprocessValue(value)
(identity
by default): allows to replace value on rendering. Useful for huge collections, as there is no need to traverse all entries, just the ones that are rendered.isCustomNode(value)
(returns false
by default): if returns true
, item is rendered via JSONValueNode
, which allows to render custom component for any type of item (not just literals). Should be used with valueRenderer
.expandAll = true
.hideRoot
prop (See https://github.com/chibicode/react-json-tree/pull/29)