class-gui
v1.0.2
Published
##Example
Downloads
8
Readme
class-gui
##Example
import React from "react"
import ReactDom from "react-dom"
import ClassGui from "class-gui"
import t from "tcomb-form"
class User {
constructor(){
}
static getSchema(){
return t.struct(
{
name: t.String,
age: t.Number,
dateOfBirth: t.Date
}
)
}
}
ReactDom.render(
<ClassGui clazz={User} value={{name:"Bob"}} allowDelete={true|false}/>,
document.getElementById("app"))