What can I do? how to insert text into div

Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**

const MyComponent = function() {
// Change code below this line
<div className='customClass'/>

// Change code above this line
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36

Challenge: Create a Stateless Functional Component

Link to the challenge:

Your div needs text in it so you can’t use a self closing div

where and how to write text

Just like you would with a normal div. Regular html is totally fine in JSX

how :face_with_head_bandage: :face_with_head_bandage:

<div>text can go here</div>

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.