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

22nd
May 2016
Raul Rodriguez
@raul782
May 22 2016 00:00
I mean for js.Dynamic
Something like what I've edited above?
Øyvind Raddum Berg
@oyvindberg
May 22 2016 00:03
Js.Dynamic.literal(backgroundColor = "red")
From
Gitter mobile client is weird. *js.Dynamic
@oyvindberg thanks a lot for your help, btw, is there a release date for version mui 0.15
I'll keep testing it later, but I believe the Theme feature will be great to style all these components.
Chandra Sekhar Kode
@chandu0101
May 22 2016 00:33
@oyvindberg i wonder how its working :s
Øyvind Raddum Berg
@oyvindberg
May 22 2016 00:42
that's pretty much your code, @chandu0101
:P
which part are you wondering about? apparently you can add src elements to the dom, and the browsers will load further js code async when you do it
Chandra Sekhar Kode
@chandu0101
May 22 2016 00:43
there is no tag like src
it should be script
Øyvind Raddum Berg
@oyvindberg
May 22 2016 00:44
that is a good point
no idea why then, i either refactored your code or found it online
Øyvind Raddum Berg
@oyvindberg
May 22 2016 00:45
haha this is like a summary of the whole javascript world
"it works, but i have no idea why"
anyhow @raul782 it can be released very soon, there is just a tiny bit of clean up that i wanted to do first
Chandra Sekhar Kode
@chandu0101
May 22 2016 00:50
btw why no FunctionMacro yet ?
Raul Rodriguez
@raul782
May 22 2016 00:53
Sounds great :+1: , I've started a project that will be using scalajs and this library, so hopefully I'll be able to start contributing more as I start to understand how everything works together.
Øyvind Raddum Berg
@oyvindberg
May 22 2016 00:58
are there any performance benefits for example to using the function macro?
for all i have been concerned so far its most useful for eliminating some boilerplate, that we generate anyway
Chandra Sekhar Kode
@chandu0101
May 22 2016 01:08
didn’t benchmarked , but with only defs we’re not creating any intermediate instances! and we can have two variants inline/noinline.
and we don’t need extra () for void tags :)
Øyvind Raddum Berg
@oyvindberg
May 22 2016 01:18
that last part is a very good argument