conventions.io

Tech Challenge

2026-09-19

⚛️

Daily Tech Challenge

React

medium
Question 1 of 5

The same characters, Tom &amp; Jerry, appear twice: once as literal JSX text inside the <h1>, and once inside a JavaScript string that is rendered through braces in the <h2>. What does the user see in each heading?

Example
function Title() {
  const name = 'Tom &amp; Jerry';
  return (
    <>
      <h1>Tom &amp; Jerry</h1>
      <h2>{name}</h2>
    </>
  );
}

Saturday, September 19, 2026 · A new challenge drops every day