did-mount
would probably need to return rum-state.
(fn [state]
(.scrollIntoView (rum/dom-node state))
state)
dom-node is deprecated though. I was trying to use the suggested replacement. Which based on the react documentation, is what I pasted above, that is to use a ref
I think
[:div [:span "this is"] [:br] [:span "on two lines"]]
Should work. You need a br tag to do a new line in HTML. I'm sure you can write a helper function to split strings into spans/br based on new line symbol to make life easier for youYa, that's what I ended up doing, thanks!