The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

From toy DOM Driver to real DOM Driver

From toy DOM Driver to real DOM Driver

4:52
This lessons shows how we are able to easily swap our toy DOM Driver with the actual Cycle.js DOM Driver, a more solid, more flexible, more efficient implementation.
Watch this lesson now
Avatar
egghead.io

This lessons shows how we are able to easily swap our toy DOM Driver with the actual Cycle.js DOM Driver, a more solid, more flexible, more efficient implementation.

Avatar
Kevin

Hyperscript normally enables the style attribute to be either a string or an object, while it seems the implementation from CycleDOM that was demonstrated in this video only accepts an object.

Is there a particular reason by design for this deviation?

In reply to egghead.io
Avatar
Andre

Hi Kevin. No particular reason. I haven't yet seen anyone wanting to write the style as a string. In any case, I recommend writing styles in CSS or some JS solution that compiles to CSS.

In reply to Kevin
HEY, QUICK QUESTION!
Joel's Head
Why are we asking?