useMergedClasses
This API is not deprecated but the new recommended way is to do:
This would also work (mentioned just so you understand how it works):
Merge the internal classes and the one that might have been provided as props into a single classes object.
This is the new way for Overriding styles - classes
prop.
See this issue.
NOTE: You may end up with eslint warnings like this one if you deconstruct more that one item.
Don't hesitate to disable eslint(prefer-const)
: Like this in a regular project, or like this in a CRA.
Last updated