isosphere / yew-bootstrap

Bootstrap 5 Components for the Yew Framework
https://crates.io/crates/yew-bootstrap
MIT License
38 stars 18 forks source link

Answer Question: Why `yew-bootstrap` Instead of Manually Using Bootstrap? #7

Open isosphere opened 1 year ago

isosphere commented 1 year ago

This is a question I have regarding the project; I think the answer is easier callback handling, but I'm not certain because I haven't tried the alternative.

I think others will have the same question, and we should be able to tell them in our README.md why this project will make their work easier if they intend to use bootstrap.

Why shouldn't a user manually call bootstrap raw in html! { } macros? Would it be a huge pain in the butt for them to do this and also have a "reactive" web application? If we are saving them some pain, we should make that clear.

vswarte commented 1 year ago

To add to this: having a typed API to the components prevents some gnarly goofs where a typo'd classname or attribute breaks UI.