2 ms·
Any idea why React.addons.classSet is now deprecated? It was really helpful.
by ponytech 12y ago
Any idea why React.addons.classSet is now deprecated?
It was really helpful.
- ykka 12y agoNot sure but it's very easy to implement it yourself... Check this https://github.com/facebook/react/blob/2aeb8a2a6beb00617a4217f7f8284924fa2ad819/src/utils/joinClasses.js https://github.com/facebook/react/blob/2aeb8a2a6beb00617a421... But I also miss it, yeah, very useful addon.
- colinramsay 12y agoFrom the release notes: > React.addons.classSet is now deprecated. This functionality can be replaced with several freely available modules. classnames is one such module. https://www.npmjs.com/package/classnames https://www.npmjs.com/package/classnames