7.0.0 (25 May 2017)
Apart from that improvements where mostly internal facing, like improving async return types
lifecycles on functional components, new architecture to support pausing and resuming tree
updates and more.
API
// client side
{
render,
createElement,
h,
Component,
version
}
// server side
{
...,
shallow
}
renderToString
renderToString is supplimented by h(..).toString()
in a server enviroment which means we could just do this ${h(..)}
renderToStream
renderToStream is supplimented by dio.render
which also supports rendering to a writable stream
on the server like the Node.js Response
object and h(..).toStream()
, dio.render
however also handles streaming json responses and will set the correct MIME type if one hasn't been set.