sketch/redraw
Functions
pub fn provider(children: List(Component)) -> Component
Create the Sketch provider used to manage the StyleSheet
.
This makes sure identical styles will never be computed twice.
Use it at root of your render function.
import redraw
import redraw/dom/client
import sketch/redraw as sketch_redraw
pub fn main() {
let app = app()
let root = client.create_root("root")
client.render(root, {
redraw.strict_mode([
sketch_redraw.provider([
app(),
]),
])
})
}