import React from "react"
export default function App() {
const [messages, setMessages] = React.useState(["a", "b"])
/**
* Challenge:
* - Only display the <h1> below if there are unread messages
*/
return (
<div>
<h1>You have _ unread messages!</h1>
</div>
)
}
this is the code and the challenge commented out, i have no idea what to do please help
i tried setting up a second state with integer 0 as default, then i tried to insert with curlybrackets into the jsx markup but it didnt truly work
New contributor
Johannes Pettersson is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.