Closed TimNZ closed 6 years ago
'undefined' is a painful thing to pass as it is usually is a test for a value not being provided at all. Makes checks in React lifecycle methods like componentWillReceiveProps for updated props difficult.
Testing for 'null' shouldn't break anything
'undefined' is a painful thing to pass as it is usually is a test for a value not being provided at all. Makes checks in React lifecycle methods like componentWillReceiveProps for updated props difficult.
Testing for 'null' shouldn't break anything