scrimba
Frontend Career Path
Advanced React
Reusability
Button - props review challenge
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

Button - props review challenge
AboutCommentsNotes
Button - props review challenge
Expand for more info
index.js
run
preview
console
import React from 'react';
import ReactDOM from 'react-dom/client';
// import Button from "./Button" <-- You need to make this component first


/**
* Challenge:
*
* Build a Button component in a separate file.
* (For styling purposes, make sure it renders an HTML <button> element)
* Your button component should take a `text` prop
*/

function App() {
return (
<main>
{/* Your custom Button component here */}
<button>Click here</button>
</main>
)
}

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