leptos-use/examples/use_storage
Maccesch ec6027c59e Merge branch 'main' into leptos-0.7
# Conflicts:
#	CHANGELOG.md
#	Cargo.toml
#	src/is_err.rs
#	src/is_none.rs
#	src/is_ok.rs
#	src/is_some.rs
#	src/storage/use_local_storage.rs
#	src/storage/use_session_storage.rs
#	src/storage/use_storage.rs
#	src/use_broadcast_channel.rs
#	src/use_cookie.rs
#	src/use_device_pixel_ratio.rs
#	src/use_event_source.rs
#	src/use_to_string.rs
#	src/use_websocket.rs
#	src/utils/codecs/string/from_to_string.rs
#	src/utils/codecs/string/json.rs
#	src/utils/codecs/string/prost.rs
2024-07-22 23:12:46 +01:00
..
src work to port to leptos 0.7 2024-05-07 12:41:44 +01:00
style added use_storage and use_round 2023-06-10 00:57:35 +01:00
Cargo.toml codecs extracted into crate codee 2024-07-08 17:10:29 +01:00
index.html added use_storage and use_round 2023-06-10 00:57:35 +01:00
input.css added use_storage and use_round 2023-06-10 00:57:35 +01:00
README.md added use_storage and use_round 2023-06-10 00:57:35 +01:00
rust-toolchain.toml made examples use nightly again so it can be built with CI 2023-06-24 01:37:15 +01:00
tailwind.config.js added use_storage and use_round 2023-06-10 00:57:35 +01:00
Trunk.toml added use_storage and use_round 2023-06-10 00:57:35 +01:00

A simple example for use_storage.

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 @tailwindcss/forms
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