Closed behnammodi closed 3 years ago
thanks
@kof what is your opinion about convert class component to function component in react-jss
package?
you mean changing the underlying implementation of the HOC to use hooks inside?
@kof Yes exactly
Also JssProvider
That's the plan, we have an issue for that somewhere. There is one thing that a class-based implementation does and hooks doesn't - merging classes when classes are passed to the HOC. We need to add this feature to the hooks interface first and then use it when migrating the HOC.
Issue regarding merging the classes https://github.com/cssinjs/jss/issues/1276
Couldn't find the issue for using hook inside of HOC, so created one https://github.com/cssinjs/jss/issues/1505
Here is a separate issue for mgirating the provider https://github.com/cssinjs/jss/issues/1506
Ok
Can I create a draft PR? and discuss on it
sure
I changed
react
to>=16.8.6
becuasereact-dom
is16.8.6