1.  某属性的类型无效。

Warning: Failed prop type: ButtonContainer: prop type `inline` is invalid; it must be a function, usually from the `prop-types` package, but received `undefined`.

react开发中常见的 warning

原码:

react开发中常见的 warning     react开发中常见的 warning 

2. Warning: Failed prop type: Invalid prop `layout` of value `Horizontal` supplied to `Form`, expected one of ["horizontal","inline","vertical"].

react开发中常见的 warning

3. Warning: React does not recognize the `staticContext` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `staticcontext` instead. If you accidentally passed it from a parent component, remove it from the DOM element.

react开发中常见的 warning


相关文章: