In React.DOM.Props from purescript-react, DOM node attributes are nearly exhaustively listed there, except for a class attribute (I'd suspect it to be named _class, similar to _type for Purescript's syntax issue). I tried to make my own with
_class :: String -> Props
_class = unsafeMkProps "class"
And attempted to use it, but after inspecting the HTML, React didn't include the attribute! Why is this? Why can't I use a class attribute in my DOM nodes?
You probably want to use className here and not class. This is done to prevent confusion between a JavaScript class and the DOM attribute class.
Here's what the official documentation says:
To specify a CSS class, use the className attribute. This applies to all regular DOM and SVG elements like
<div>,<a>, and others.
It is actually even listed in the page you're linking to, here
className :: String -> Props