Skip to content

Failed prop type: t: prop type lang is invalid; it must be a function, usually from the prop-types package, but received object. #109

Closed
@qliqdev

Description

@qliqdev

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions