Closed colin-codegen[bot] closed 1 year ago
The approach we're suggesting involves creating a new React component, SmileyFace, directly in the file src/pages/index.tsx. The component will render a div with a smiley face emoji. Here's how it's defined:
SmileyFace
const SmileyFace = () => ( <div style={{ fontSize: '2em' }}> 😊 </div> );
Then introduce this SmileyFace component into the Home render method, like this:
Home
... <div className="text-2xl font-semibold">Test your Empathy!</div> <Chat /> <SmileyFace /> ...
This adds a smiley face right below the Chat component.
Chat
The approach we're suggesting involves creating a new React component,
SmileyFace
, directly in the file src/pages/index.tsx. The component will render a div with a smiley face emoji. Here's how it's defined:Then introduce this
SmileyFace
component into theHome
render method, like this:This adds a smiley face right below the
Chat
component.