我得到這個PropTypes validators directly is not supported
警告這些組件TreeView
,ObjectInspector
,ConnectedTreeNode
,ObjectRootLabel
,ObjectPreview
,但支持我不知道這些組件屬於哪個庫。PropTypes驗證不要直接從`TreeView`,`ObjectInspector`,`ConnectedTreeNode`,`ObjectRootLabel`,`ObjectPreview`
我該如何擺脫這些警告?
Warning: Failed Context Types: Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Check the render method of `TreeView`.
Warning: Failed Context Types: Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Check the render method of `ObjectInspector`.
Warning: Failed Context Types: Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Check the render method of `ConnectedTreeNode`.
Warning: Failed Context Types: Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Check the render method of `ObjectRootLabel`.
Warning: Failed Context Types: Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Check the render method of `ObjectPreview`.