Hello Guys! I noticed that you check the props.visible by the presence of it in props.
Why not check for undefined?
|
if ('visible' in this.props) { |
We use a rule eslint - react/require-default-props. And set props.visible as undefined in the defaultProps. And if the props.visible is equal to undefined, then he still gets to extraProps.popupVisible.
Hello Guys! I noticed that you check the props.visible by the presence of it in props.
Why not check for undefined?
tooltip/src/Tooltip.jsx
Line 72 in b5e43fd
We use a rule eslint - react/require-default-props. And set props.visible as undefined in the defaultProps. And if the props.visible is equal to undefined, then he still gets to extraProps.popupVisible.