mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
21 lines
383 B
TypeScript
21 lines
383 B
TypeScript
import * as React from 'react';
|
|
import 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)}/>;
|