dillon1000/react
Commit
Browse files Allow falsy values in statics
We found that the component would break if we set any statics with the value 0. It turns out @chenglou already ran into this with d71736b3ed665d1ffcd0c34a55510ce266a30eb2 but the statics code was copied earlier, and still has this falsy check. Made the same change, updated the unittest.
Changed paths2 files
First-parent comparisonsrc/core/ReactCompositeComponent.js ModifiedM src/core/__tests__/ReactCompositeComponent-test.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…