How to use the element function from prop-types

Find comprehensive JavaScript prop-types.element code examples handpicked from public code repositorys.

71
72
73
74
75
76
77
78
79
80
  /**
   * this is essentially children. However we can't use children because then
   * using `wrapper.setProps({ children })` would work differently if this component
   * would be the root.
   */
  __element: PropTypes.element.isRequired,
  __strict: PropTypes.bool.isRequired
} : void 0;
var warnedOnce = false; // Generate an enhanced mount function.

fork icon0
star icon3
watch icon1

+ 3 other calls in file

406
407
408
409
410
411
412
, perspective: PropTypes.shape( SerialisedPerspective ).isRequired
, contextinstance: PropTypes.string.isRequired
, roleinstance: PropTypes.string
, myroletype: PropTypes.string.isRequired
, create: PropTypes.func
, card: PropTypes.element
};
fork icon0
star icon0
watch icon1

+ 2 other calls in file