Skip to content
master
Go to file
Code

Latest commit

* Add attribute macro for functional components

* make rustfmt happy

* add docstring for macro

* Add example for functional components

* make rustfmt and clippy happy

* oops

* https://tenor.com/view/come-on-brad-gregory-upset-freaking-out-overwhelmed-gif-17476366

* remove functional example

* remove useless feature, fix order of deps, fix docs

* various fixes

* make rustfmt happy

* oopsie

* bruh i forgot

* handle generics, box Block

* handle >1 parameters

* don't do `TokenStream1`, make rustfmt happy

* ensure const, async and extern functions can't be used, better error messages

* thanks rustfmt

* transparently consume FnArg

* add tests, fix error message

* seriously?

* fix these 2

* More test cases, better errors, formatting

* docs

* properly use #![no_implicit_prelude] for passing tests

* pass all attributes as is

* add Makefile.toml

* docs

* update test

* docs

* hooks docs

* Add docs for FunctionalProvider trait

* oopsie

* is this it?

* lets try this

* bruh moment

* better error message for bad return type, use function name for function struct,  fix order in dictionary.txt

* better error messages

* replace `function` with `functional`

* completely replace `function` with `functional`

* completely replace `functional` with `function`: part 2

Missed this in previous commit

* revert package/crate names back

* formatting + fix workflow

* proc macros are fragile

* fix what i broke

* fixes

* Update docs

Co-authored-by: Simon <simon@siku2.io>

* Improve examples in docs

Co-authored-by: Simon <simon@siku2.io>

* update how #[function_component(_)] is explained

* finish "macro" -> "attribute", docs updates

* move contribute note to the top

* update #[function_component(_)] docstring

* Update docs

Co-authored-by: Simon <simon@siku2.io>

* oops, missed this

Co-authored-by: Simon <simon@siku2.io>

* Move hello world to a more appropriate place

* forgot to update the stderr file

* apparently this example didn't compile

* improve example

Co-authored-by: Simon <simon@siku2.io>
23a166b

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
Dec 24, 2017

README.md

About

Yew is a modern Rust framework for creating multi-threaded front-end web apps with WebAssembly.

  • Features a macro for declaring interactive HTML with Rust expressions. Developers who have experience using JSX in React should feel quite at home when using Yew.
  • Achieves high performance by minimizing DOM API calls for each page render and by making it easy to offload processing to background web workers.
  • Supports JavaScript interoperability, allowing developers to leverage NPM packages and integrate with existing JavaScript applications.

Note: Yew is not (yet) production ready but is great for side projects and internal tools.

Contributing

Yew is a community effort and we welcome all kinds of contributions, big or small, from developers of all backgrounds. We want the Yew community to be a fun and friendly place, so please review our Code of Conduct to learn what behavior will not be tolerated.

🤠 New to Yew?

Start learning about the framework by helping us improve our documentation. Pull requests which improve test coverage are also very welcome.

😎 Looking for inspiration?

Check out the community curated list of awesome things related to Yew / WebAssembly at jetli/awesome-yew.

🤔 Confused about something?

Feel free to drop into our Discord chatroom or open a new "Question" issue to get help from contributors. Often questions lead to improvements to the ergonomics of the framework, better documentation, and even new features!

🙂 Ready to dive into the code?

After reviewing the Contribution Guide, check out the "Good First Issues" (they are eager for attention!). Once you find one that interests you, feel free to assign yourself to an issue and don't hesitate to reach out for guidance, the issues vary in complexity.

🤑 Let's help each other!

Come help us on the issues that matter that the most and receive a small cash reward for your troubles. We use Issuehunt to fund issues from our Open Collective funds. If you really care about an issue, you can choose to add funds yourself!

😱 Found a bug?

Please report all bugs! We are happy to help support developers fix the bugs they find if they are interested and have the time.

🤓 Want to help translate?

Translations can be submitted on the Yew GitLocalize Repo. If you are interested in being the official moderator for a language, please reach out on Discord.

Contributors

Code Contributors

This project exists thanks to all the people who contribute.

Financial Contributors

Become a financial contributor and help us sustain our community. [Contribute]

Individuals

Organizations

Support this project with your organization. Your logo will show up here with a link to your website. [Contribute]

You can’t perform that action at this time.