Instances of up.RenderResult
describe the effects of rendering.
Functions like up.render()
, up.follow()
or up.submit()
return a promise
that resolve with an up.RenderResult
:
let result = await up.render('.target', content: 'foo')
console.log(result.fragments) // => [<div class="target">...</div>]
console.log(result.layer) // => up.Layer.Root
Returns the inserted fragment.
An array of fragments that were inserted.
The updated layer.
Whether this render pass did not result in any fragments being rendered.
The target selector that was rendered.