leptos-use/examples/use_throttle_fn
2023-05-19 22:29:07 +01:00
..
src improved docs 2023-05-19 22:29:07 +01:00
style improved docs 2023-05-19 22:29:07 +01:00
Cargo.toml added example and demo for use_throttle_fn 2023-05-19 20:43:03 +01:00
index.html added example and demo for use_throttle_fn 2023-05-19 20:43:03 +01:00
input.css added example and demo for use_throttle_fn 2023-05-19 20:43:03 +01:00
README.md added example and demo for use_throttle_fn 2023-05-19 20:43:03 +01:00
rust-toolchain.toml added example and demo for use_throttle_fn 2023-05-19 20:43:03 +01:00
tailwind.config.js added example and demo for use_throttle_fn 2023-05-19 20:43:03 +01:00
Trunk.toml added example and demo for use_throttle_fn 2023-05-19 20:43:03 +01:00

A simple example for use_throttle_fn.

If you don't have it installed already, install Trunk and Tailwind as well as the nightly toolchain for Rust and the wasm32-unknown-unknown target:

cargo install trunk
npm install -D tailwindcss
rustup toolchain install nightly
rustup target add wasm32-unknown-unknown

Then, open two terminals. In the first one, run:

npx tailwindcss -i ./input.css -o ./style/output.css --watch

In the second one, run:

trunk serve --open