Skip to content

Commit

Permalink
fix(react): remove unused dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
EqualMa committed Feb 27, 2022
1 parent 51e4be9 commit a80e0d6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,25 +33,25 @@ Before updating, please see the full [changelog](https://github.com/frender-rs/f
frender = "= 1.0.0-alpha.5"
```

3. Create `index.html`
3. Create `index.html` in the project root directory.

```html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Hello World</title>
<title>My frender App</title>
<script src="https://unpkg.com/react@17/umd/react.development.js"></script>
<script src="https://unpkg.com/react-dom@17/umd/react-dom.development.js"></script>
<link data-trunk rel="rust" href="Cargo.toml" data-wasm-opt="0" />
<link data-trunk rel="rust" href="Cargo.toml" />
</head>
<body>
<div id="frender-root"></div>
</body>
</html>
```

4. Modify `main.rs`
4. Modify `src/main.rs`

```rust
use frender::prelude::*;
Expand Down
1 change: 0 additions & 1 deletion crates/react/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ react-sys = "1.0.0-alpha.23"
wasm-bindgen = "0.2.63"
forgotten = "1.1"
js-sys = "0.3"
once_cell = "1.8"
convert-js = "1.0.0-alpha.14"

[dependencies.web-sys]
Expand Down

0 comments on commit a80e0d6

Please sign in to comment.