JSFiddle - React, Tailwind, and code Playground

HTML

<html>
	<body>
		<div id="foo" class="aClass anotherClass">Div</div>
	</body>
</html>

JavaScript

$(document).ready(function() {
	$("#foo").removeClass(); // Should remove "aClass"
	alert("#foo's class(es) AFTER .removeClass():\n" + 	document.getElementById('foo').className.split(/\s+/)); // But as you see, they just combine
});