docs: more badges and comparison to other rust frameworks

This commit is contained in:
Jonathan Kelley 2022-01-02 21:56:05 -05:00
parent d7e967ba5b
commit 601632fc7e

View file

@ -16,23 +16,30 @@
<img src="https://img.shields.io/crates/d/dioxus.svg?style=flat-square" <img src="https://img.shields.io/crates/d/dioxus.svg?style=flat-square"
alt="Download" /> alt="Download" />
</a> </a>
<!-- docs.rs docs --> <!-- docs -->
<a href="https://docs.rs/dioxus"> <a href="https://docs.rs/dioxus">
<img src="https://img.shields.io/badge/docs-latest-blue.svg?style=flat-square" <img src="https://img.shields.io/badge/docs-latest-blue.svg?style=flat-square"
alt="docs.rs docs" /> alt="docs.rs docs" />
</a> </a>
<!-- CI --> <!-- CI -->
<!-- <a href="https://github.com/jkelleyrtp/dioxus/actions"> <a href="https://github.com/jkelleyrtp/dioxus/actions">
<img src="https://github.com/dioxuslabs/dioxus/actions/workflows/main.yml/badge.svg" <img src="https://github.com/dioxuslabs/dioxus/actions/workflows/main.yml/badge.svg"
alt="CI status" /> alt="CI status" />
</a> -->
<!--Awesome -->
<a href="https://github.com/dioxuslabs/awesome-dioxus">
<img src="https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg"
alt="Awesome Page" />
</a> </a>
</div> </div>
<div align="center">
<!--Awesome -->
<a href="https://github.com/dioxuslabs/awesome-dioxus">
<img src="https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg" alt="Awesome Page" />
</a>
<!-- Discord -->
<a href="https://discord.gg/XgGxMSkvUM">
<img src="https://badgen.net/discord/members/XgGxMSkvUM" alt="Awesome Page" />
</a>
</div>
<div align="center"> <div align="center">
<h3> <h3>
<a href="https://dioxuslabs.com"> Website </a> <a href="https://dioxuslabs.com"> Website </a>
@ -141,6 +148,15 @@ You shouldn't use Dioxus if:
- You want to support browsers where Wasm or asm.js are not supported. - You want to support browsers where Wasm or asm.js are not supported.
- You need a Send+Sync UI solution (Dioxus is not currently ThreadSafe) - You need a Send+Sync UI solution (Dioxus is not currently ThreadSafe)
### Comparison with other Rust UI frameworks
Dioxus primarily emphasizes **developer experience** and **familiarity with React principles**.
- [Yew](https://github.com/yewstack/yew): prefers the elm pattern instead of React-hooks, no borrowed props, no SSR.
- [Percy](https://github.com/chinedufn/percy): Supports SSR but less emphasis on state management and event handling.
- [Sycamore](https://github.com/sycamore-rs/sycamore): VDOM-less using fine-grained reactivity, but lacking in ergonomics.
- [Dominator](https://github.com/Pauan/rust-dominator): Signal-based zero-cost alternative, less emphasis on community and docs.
# Parity with React # Parity with React
Dioxus is heavily inspired by React, but we want your transition to feel like an upgrade. Dioxus is _most_ of the way there, but missing a few key features. This parity table does not necessarily include important ecosystem crates like code blocks, markdown, resizing hooks, etc. Dioxus is heavily inspired by React, but we want your transition to feel like an upgrade. Dioxus is _most_ of the way there, but missing a few key features. This parity table does not necessarily include important ecosystem crates like code blocks, markdown, resizing hooks, etc.