Interpolation

Loading "Interpolation"
๐Ÿฆ‰ "Interpolation" is defined as "the insertion of something of a different nature into something else."
Let's take template literals for example:
const greeting = 'Sup'
const subject = 'World'
const message = `${greeting} ${subject}`
๐Ÿ‘จโ€๐Ÿ’ผ See if you can figure out how to extract the className ("container") and children ("Hello World") to variables and interpolate them in the JSX.
const className = 'container'
const children = 'Hello World'
const element = <div className="hmmm">how do I make this work?</div>
๐Ÿ“œ The react docs for JSX are pretty good: Writing Markup with JSX
Here are a few sections of particular interest for this step:
Login to get access to the exclusive discord channel.
  • โš›๏ธFundamentals
    First Four Exercises are Free!
    Kent C. Dodds โ—† ๐Ÿš€๐Ÿ†๐ŸŒŒ:
    To make sure this shows up in the fundamentals thread. Isn't it exciting the first four exercises of...
    1 ยท 4 days ago
  • General
    Welcome to EpicReact.dev! Say Hello ๐Ÿ‘‹
    Kent C. Dodds โ—† ๐Ÿš€๐Ÿ†๐ŸŒŒ:
    Welcome to the first of many posts in the EpicReact.dev channel! Take a moment to introduce yourself...
    0 ยท 4 days ago