Files
next-challenges/pages/outline.js
T
Kyle Lawson a37cdfc29f first commit
2021-08-19 11:20:36 -05:00

31 lines
640 B
JavaScript

const Outline = () => {
const handleBlockClick = () => {
console.log("Block Clicked!");
};
const handleCloseClick = () => {
console.log("Close Clicked!");
};
const handleSubmitClick = () => {
console.log("Submit Clicked!");
};
return (
<div
style={{ width: 300, height: 300, backgroundColor: "#FFDDDD" }}
onClick={handleBlockClick}
>
<h3>Block</h3>
<button style={{ margin: 40 }} onClick={handleCloseClick}>
Close
</button>
<button style={{ margin: 40 }} onClick={handleSubmitClick}>
Submit
</button>
</div>
);
};
export default Outline;