Closed mishabosin closed 9 years ago
That is consistent with other React API. Looks good to me.
Why do you even have an isRendered
boolean ?
Instead of r.div({ isRendered: isRendered })
you can literally do isRendered ? r.div() : null
The latter is terser and reduces the surface area of r
Yes, we can. Yet it's cleaner syntax wise. After all we are composing elements in declarative syntax, and a programmatic statement makes it messier.
A small naming convention thing.
Looking forward to trying this tool!