scrimba
Frontend Career Path
React basics
Meme generator
Conditional rendering practice
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Conditional rendering practice
AboutCommentsNotes
Conditional rendering practice
Expand for more info
App.js
run
preview
console
import React from "react"

export default function App() {
const [messages, setMessages] = React.useState(["a", "b"])
/**
* Challenge:
* - If there are no unread messages, display "You're all caught up!"
* - If there are > 0 unread messages, display "You have <n> unread
* message(s)"
* - If there's exactly 1 unread message, it should read "message"
* (singular)
*/
return (
<div>

</div>
)
}
Console
/index.html
-4:45