-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[Tutorial] Chapter 2: Wrap rendered <article>
in React fragments
#5020
[Tutorial] Chapter 2: Wrap rendered <article>
in React fragments
#5020
Conversation
✅ Deploy Preview for redwoodjs-docs ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
db954e7
to
947d3c8
Compare
This avoids warning `'ArticlesCell' cannot be used as a JSX component. Its return type 'Element[]' is not a valid JSX element.`. Closes redwoodjs#5008
d5d5baa
to
b117719
Compare
Thanks! Are there any further instances of these same code snippets further on, or are these the only three? |
@cannikin at least as far as i could see – i searched through the tutorial until chapter 5 where the wrapper is different (and valid) already b/c of the tailwind redesign introduced during the "intermission" chapter. |
Great, thanks! |
Avoid invalid JSX element array, similar to redwoodjs#5020
…tutorial chapter 6 (#5058) * Remove unnecessary highlight (line is generated by default) * Keep React fragment as wrapping container Avoid invalid JSX element array, similar to #5020 * Fix highlighting b/c that lines actually changed as well * Add back highlight Going to add this back for now since it's used in the example Co-authored-by: Dominic Saadi <[email protected]>
This avoids warning
'ArticlesCell' cannot be used as a JSX component. Its return type 'Element[]' is not a valid JSX element.
.Closes #5008