Documentation v2.0.0-alpha.37: https://raw.githack.com/uiwjs/react-json-view/9b4b997/index.html
Or Doc Website: https://htmlpreview.github.io/?https://github.com/uiwjs/react-json-view/9b4b997/index.html
Comparing Changes: v2.0.0-alpha.36...v2.0.0-alpha.37
npm i @uiw/react-json-view@2.0.0
- 🌟 feat: add beforeCopy callback to Copied component #78 f2c5b4f @jaywcjlove
Global beforeCopy (removes quotes and adds comments for objects
<JsonView value={example} onCopied={handleCopied} displayObjectSize={false}>
Section-level beforeCopy (converts to uppercase)
<JsonView.Copied
beforeCopy={(text, keyName, value) => {
console.log('Section-level beforeCopy:', { text, keyName, value });
return text.toUpperCase();
}}
/>
</JsonView>