dillon1000/react

Commit

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.
Browse files
Changed paths2 files
First-parent comparison
M src/core/ReactCompositeComponent.js ModifiedM src/core/__tests__/ReactCompositeComponent-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…