by gcanti on 11/17/14, 7:56 PM with 1 comments
by gcanti on 11/17/14, 7:56 PM
type Node = {
tag: string,
attrs: object<name, value>,
children: undefined | null | Node | Array<Node>
}
If your component handle a private state, you can inject a state to test different configurations.This is an example of massive use in a form generation library:
https://github.com/gcanti/tcomb-form/blob/master/test/test.j...
Hope it can help you too.