These are chat archives for chandu0101/scalajs-react-components

11th
Nov 2015
Roberto Leibman
@rleibman
Nov 11 2015 19:39
Hey... I'm playing around with the idea of creating a wrapper for elemental-ui: I've been using your excellent material-ui wrapper, but I want to understand scalajs/react better and I thought I'd try elemental-ui.
My first attempt (which should be damn simple) is for https://github.com/elementalui/elemental/blob/master/src/components/Button.js
Roberto Leibman
@rleibman
Nov 11 2015 20:00
My question is about events... what should I do with events? Elemental-ui just renders their Button as an html <button>, but in their js file for Button there are no events, and my reading of their documentation is that they just expect you to use the default behavior from the tag. So would I add an onClick prop to Button?
Zach Langbert
@zlangbert
Nov 11 2015 20:42

So would I add an onClick prop to Button?

Yes, looks like it

Roberto Leibman
@rleibman
Nov 11 2015 23:25
Wow, getting lots of traction, and I'm deeply into the button demo page.
(for elemental-ui)
But... I'm not sure where and how the css should be called.