mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-22 11:57:33 +08:00
Fix test...
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
/// <reference types="node" />
|
||||
|
||||
import * as React from 'react';
|
||||
import * as ReactDOM from 'react-dom';
|
||||
// import * as Json from 'react-json';
|
||||
import { Json } from "react-json";
|
||||
import json = require('react-json');
|
||||
let Json = json.Json;
|
||||
|
||||
let TestObject = {
|
||||
s: "Hello, world",
|
||||
@@ -19,8 +20,4 @@ let TestObject = {
|
||||
}
|
||||
};
|
||||
|
||||
export class TestComponent extends React.Component<{}, {}> {
|
||||
render(): JSX.Element {
|
||||
return <Json value={TestObject} onChange={val => console.log(val)}/>;
|
||||
}
|
||||
}
|
||||
<Json value={TestObject} onChange={(val: any) => console.log(val)}/>;
|
||||
|
||||
Reference in New Issue
Block a user