mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
23 lines
414 B
TypeScript
23 lines
414 B
TypeScript
/// <reference types="node" />
|
|
|
|
import * as React from 'react';
|
|
const Json = require('react-json');
|
|
|
|
const TestObject = {
|
|
s: "Hello, world",
|
|
b: true,
|
|
n: 666,
|
|
o: {
|
|
s: "Hello, world",
|
|
b: true,
|
|
n: 666,
|
|
o: {
|
|
s: "Hello, world",
|
|
b: true,
|
|
n: 666,
|
|
}
|
|
}
|
|
};
|
|
|
|
<Json value={TestObject} onChange={(val: any) => console.log(val)}/>;
|