Closed
Description
in Documentation Properties written that lang have to be an obj
my lang obj
const lang = {
collapseAll: "COLLAPSE_ALL",
expandAll: "EXPAND_ALL",
toggle: "TOGGLE"
};
render()
<CheckboxTree
nodes={categories} checked={cat_checked} expanded={cat_expanded} lang={lang}
onCheck={cat_checked => this.setState({cat_checked})}
onExpand={cat_expanded => this.setState({cat_expanded})}
/>
Failed prop type: t: prop type lang
is invalid; it must be a function, usually from the prop-types
package, but received object
.
What can be the problem?