Skip to content

Commit

Permalink
Add web build command to storage example
Browse files Browse the repository at this point in the history
Adds a separate command to run the storage example in the browser and removes `(Desktop)` which can make it seem like storage only works on the desktop platform
  • Loading branch information
ealmloff authored May 18, 2024
1 parent 57ab3fa commit bf3bae5
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions examples/storage/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
# use_persistent (Desktop)
# use_persistent


Use persistent allows you to create data that will persist across sessions. This example will teach you how to use the `use_persistant` hook.

Run:
Desktop:

```dioxus serve --platform desktop```
```sh
dioxus serve --platform desktop --features desktop
```

Web:

```sh
dioxus serve --features web
```

0 comments on commit bf3bae5

Please sign in to comment.