react-simply icon indicating copy to clipboard operation
react-simply copied to clipboard

Rename getState -> useState

Open shirk3y opened this issue 5 years ago • 1 comments

getState() is meant to be used as React hook, so we may use more compatible name useState(). This would for example enable proper detection as hook by eslint-plugin-react-hooks.

shirk3y avatar May 13 '20 21:05 shirk3y

Sorry, I've noticed that there's a PR related to this issue: https://github.com/lukashala/react-simply/pull/6 so feel free to close this or keep as a reference.

shirk3y avatar May 13 '20 21:05 shirk3y