You are viewing a single thread.
View all comments View context
5 points

It takes some getting used to, but for me it’s much better than JavaScript and even TypeScript. TypeScript is a little better than using JavaScript, but not by much. I still find it very frustrating to use. The ecosystem is a mess, IMO.

In Rust when doing web work, at least when using the Yew framework, you return an Html type from functions. Kinda like this:

fn hello_world(props: &Props) -> Html {
  // do logic
   html!{
      <div>{ props.username }</div>
   }
}

It’s very similar to using React, with various state / hook things that have been developed pretty directly with reference to how React does things.

permalink
report
parent
reply

Programming

!programming@beehaw.org

Create post

All things programming and coding related. Subcommunity of Technology.


This community’s icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.

Community stats

  • 72

    Monthly active users

  • 320

    Posts

  • 3.3K

    Comments