This is the following code:
<div>{
!breakStarts ?
`Work:` {workMinutes}`:`{workSeconds < 10 ? `0${workSeconds} :` workSeconds}} :
`Break:` {breakMinutes}`:`{breakSeconds < 10 ? `0${breakSeconds} :` breakSeconds}}
}
</div>
As you can see, I want different messages to display depending on the truthiness of breakStarts. However, I can’t seem to use template literals in JSX. Is doing this possible or is there a better way?