Created
October 30, 2017 17:33
-
-
Save MrLeebo/84a3059a7a33993c34567172ec77698f to your computer and use it in GitHub Desktop.
Repro of react-json-view clipboard issue because https://esnextb.in/ is broken and cannot save gists right now
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import JsonView from "react-json-view"; | |
const { Button, Modal } = ReactBootstrap; | |
const src = { | |
data: "test", | |
foo: "bar" | |
}; | |
const App = () => ( | |
<Modal show> | |
<Modal.Header> | |
View JSON | |
</Modal.Header> | |
<Modal.Body> | |
<JsonView src={src} /> | |
</Modal.Body> | |
<Modal.Footer> | |
<Button>Close</Button> | |
</Modal.Footer> | |
</Modal> | |
); | |
ReactDOM.render(<App />, document.getElementById("container")); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>ESNextbin Sketch</title> | |
<!-- Latest compiled and minified CSS --> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/latest/css/bootstrap.min.css"> | |
<!-- Optional theme --> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/latest/css/bootstrap-theme.min.css"> <!-- put additional styles and scripts here --> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.4.1/react.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.4.1/react-dom.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/react-bootstrap/0.31.5/react-bootstrap.min.js"></script> | |
</head> | |
<body> | |
<div id="container"></div> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "esnextbin-sketch", | |
"version": "0.0.0", | |
"dependencies": { | |
"react-json-view": "1.13.2" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment