I'm trying to style the Button component from the template project ( https://github.com/purescript-halogen/purescript-halogen-template/blob/master/src/App/Button.purs ) with some Bulma CSS (loaded in the html head from the CDN), as in the snippet below.
I noticed that the button element only gets a style after the first click, instead of on page load as I was hoping.

Am I doing something wrong here? If so, how to fix?
Thank you in advance
render :: forall cs m. State -> ComponentHTML Action cs m
render state =
div [ bSection
]
[ p_
[ text $ "You clicked " <> show state.count <> " times" ]
, button
[ cl_ "button"
, onClick \_ -> Increment
]
[ text "Click me" ]
]
cl_ n = class_ (ClassName n)
I'm trying to style the Button component from the template project ( https://github.com/purescript-halogen/purescript-halogen-template/blob/master/src/App/Button.purs ) with some Bulma CSS (loaded in the html head from the CDN), as in the snippet below.
I noticed that the button element only gets a style after the first click, instead of on page load as I was hoping.
Am I doing something wrong here? If so, how to fix?
Thank you in advance