Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: improve components and elements #106

Merged
merged 11 commits into from
Feb 5, 2022
Merged

docs: improve components and elements #106

merged 11 commits into from
Feb 5, 2022

Conversation

jkelleyrtp
Copy link
Member

No description provided.

@@ -81,13 +81,13 @@ let name = "Bob";
rsx! ( "hello {name}" )
```

Unfortunately, you cannot drop in arbitrary expressions directly into the string literal. In the cases where we need to compute a complex value, we'll want to use `format_args!` directly. Due to specifics of how the `rsx!` macro (we'll cover later), our call to `format_args` must be contained within curly braces *and* square braces.
Unfortunately, you cannot drop in arbitrary expressions directly into the string literal. In the cases where we need to compute a complex value, we'll want to use `format_args!` directly. Due to specifics of how the `rsx!` macro (we'll cover later), our call to `format_args` must be contained within square braces.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you mean curly braces, not square.

@cryptoquick
Copy link

These are really good additions and will be helpful to have :)

@ajstrand
Copy link

I read through the new docs and I really have nothing to add. I think a lot of the additions you made help introduce folks to a React/component based way of thinking.

@jkelleyrtp jkelleyrtp marked this pull request as draft January 19, 2022 13:50
@jkelleyrtp jkelleyrtp marked this pull request as ready for review February 5, 2022 02:06
@jkelleyrtp jkelleyrtp merged commit 245a648 into master Feb 5, 2022
@jkelleyrtp
Copy link
Member Author

Merged what I had for now, will come back later and finish what's missing.

@jkelleyrtp jkelleyrtp deleted the jk/docs branch February 8, 2022 05:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants