I am using below plugin to show json .
https://www.npmjs.com/package/react-json-view.
can we have a button to which will copy this json.
https://codesandbox.io/s/async-pine-o6eho
return (
<div className="App">
<button
onClick={() => {
alert("---");
}}
>
Copy
</button>
<ReactJson src={my_json_object} theme="monokai" />
</div>
);
can we copy the below json output on button click?