std1.0.0-beta-7 SafeC docs

std :: wasm::hydrate

Function std::hydrate_bind_class

#include <std/wasm/hydrate.h> source ยท definition

void hydrate_bind_class(&Signal<int> signal, int elementHandle, const &char cls)

Adds 'cls' to the element's classList while the signal is non-zero, removes it otherwise.