Crate dioxus_web

Source
Expand description

Dioxus WebSys

§Overview


This crate implements a renderer of the Dioxus Virtual DOM for the web browser using WebSys. This web render for Dioxus is one of the more advanced renderers, supporting:

  • idle work
  • animations
  • jank-free rendering
  • controlled components
  • hydration
  • and more.

The actual implementation is farily thin, with the heavy lifting happening inside the Dioxus Core crate.

To purview the examples, check of the root Dioxus crate - the examples in this crate are mostly meant to provide validation of websys-specific features and not the general use of Dioxus.

Modules§

launch
This module contains the launch function, which is the main entry point for dioxus web

Structs§

Config
Configuration for the WebSys renderer for the Dioxus VirtualDOM.
WebDocument
The web-target’s document provider.
WebFileEngine
A file engine for the web platform

Traits§

WebEventExt
A extension trait for web-sys events that provides a way to get the event as a web-sys event.
WebFileEngineExt
Helper trait for WebFileEngine

Functions§

run
Runs the app as a future that can be scheduled around the main thread.