hypernova
hypernova copied to clipboard
Custom attributes on Hypernova DOM container
Hello.
I am using Hypernova to deprecate simple ERB elements with React components. It's been pretty much a smooth ride except for 1 thing:
- Can I add a custom class name to the Hypernova DOM container?
Since I am replacing snippets of ERB, I am introducing a new <div>
with each render_react_component
invocation. I would prefer to be able to style the Hypernova DIV instead of wrapping it in yet another DIV for the sake of layout.
Let me know if there is already a decision on this or whether I can make a PR or something.
Hello. I am encountering this issue again. However, I think being able to add a style attribute would be more convenient for my current case: I want to use a CSS grid layout where each SSRed component is rendered as a named grid item.