Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const toggleClass = (node: HTMLElement, className: string, condition: boolean) => {
if (condition) {
addClass(node, className);
} else {
removeClass(node, className);
}
};
addClass: function (className, target = findDOMNode(this)) {
return addClass(target, className);
},
removeClass: function (className, target = findDOMNode(this)) {