scrimba
Frontend Career Path
Advanced React
Reusability
Challenge - Button w/ Children
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Challenge - Button w/ Children
AboutCommentsNotes
Challenge - Button w/ Children
Expand for more info
index.js
run
preview
console
import React from 'react';
import ReactDOM from 'react-dom/client';
import Button from "./Button"

/**
* Challenge: Make the Button accept and display children.
*
* Change the text to say "Buy now!" so it's less boring 🥱
*/

function App() {
return (
<main>
<Button text="Click here" />
</main>
)
}

ReactDOM.createRoot(document.getElementById('root')).render(<App />);
Console
/index.html
-1:38