mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
18 lines
379 B
TypeScript
18 lines
379 B
TypeScript
import * as React from "react";
|
|
import JSONPretty = require("react-json-pretty");
|
|
|
|
export class Test extends React.Component {
|
|
render() {
|
|
const json = {
|
|
foo: "bar"
|
|
};
|
|
|
|
return (
|
|
<div>
|
|
<JSONPretty json={ json } />
|
|
<JSONPretty json={ JSON.stringify(json) } />
|
|
</div>
|
|
);
|
|
}
|
|
}
|