We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29ce691 commit f21fc03Copy full SHA for f21fc03
exercises/05.1-second-styles/solution.hide.jsx
@@ -3,14 +3,14 @@ import ReactDOM from "react-dom";
3
import PropTypes from "prop-types";
4
5
const buttonStyles = {
6
- //write button styles here
+ // Write button styles here
7
background: "yellow",
8
color: "black",
9
border: "none"
10
};
11
12
const badgeStyles = {
13
- //write the span styles here
+ // Write the span styles here
14
background: "red",
15
borderRadius: "50%"
16
@@ -25,9 +25,10 @@ const Badge = (props) => {
25
</button>
26
);
27
28
+
29
Badge.propTypes = {
30
label: PropTypes.string,
31
number: PropTypes.string,
32
-//dont forget to change the label
33
34
ReactDOM.render(<Badge label="Alerts" number="2" />, document.querySelector("#myDiv"));
0 commit comments