goooseman / storybook-addon-i18n

Storybook I18n Addon can be used to change locale of the component inside the preview in storybook
34 stars 3 forks source link

fix react 16.9.0 rename componentWillMount -> UNSAFE_componentWillMount #10

Closed imagine10255 closed 4 years ago

imagine10255 commented 4 years ago

use react 16.9.0 up version, has warning

image

goooseman commented 4 years ago

Thank you for your contribution.

This commit moves event handler initialization to constructor of the class.

Warning should disappear.

Version 5.1.13 is released.

imagine10255 commented 4 years ago

thx nice