Skip to content

Commit f21fc03

Browse files
authored
Update solution.hide.jsx
1 parent 29ce691 commit f21fc03

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

exercises/05.1-second-styles/solution.hide.jsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ import ReactDOM from "react-dom";
33
import PropTypes from "prop-types";
44

55
const buttonStyles = {
6-
//write button styles here
6+
// Write button styles here
77
background: "yellow",
88
color: "black",
99
border: "none"
1010
};
1111

1212
const badgeStyles = {
13-
//write the span styles here
13+
// Write the span styles here
1414
background: "red",
1515
borderRadius: "50%"
1616
};
@@ -25,9 +25,10 @@ const Badge = (props) => {
2525
</button>
2626
);
2727
};
28+
2829
Badge.propTypes = {
2930
label: PropTypes.string,
3031
number: PropTypes.string,
3132
};
32-
//dont forget to change the label
33+
3334
ReactDOM.render(<Badge label="Alerts" number="2" />, document.querySelector("#myDiv"));

0 commit comments

Comments
 (0)