Open rpominov opened 8 years ago
import Demo, {props as P} from 'react-demo' <Demo ... props={{ foo1: P.object({ bar: P.string('bar'), baz: P.callback.log(), }), foo2: P.arrayOf(P.string('bar')), foo3: P.arrayOf(P.object({ bar: P.string('bar'), baz: P.callback.log(), })), }} />
Related: https://github.com/rpominov/react-demo/pull/38
It could be perfect !