@@ -84,6 +84,7 @@ onClick={() => selectStar(currentStar + 1)} // #4
84
84
## StarRating
85
85
86
86
StarRating
87
+ [ ![ ] [ 18 ]] [ 18 ]
87
88
88
89
- This component will map over the Star Component and increment the key value.
89
90
- \# 1 we set the initial state to 0 and it will increment up to the value of totalStars.
@@ -95,11 +96,11 @@ StarRating
95
96
96
97
### Parameters
97
98
98
- - ` 0ドル ` ** [ Object] [ 18 ] **
99
+ - ` 0ドル ` ** [ Object] [ 19 ] **
99
100
- ` 0ドル.totalStars `
100
- - ` starsSelected ` ** [ Number] [ 19 ] ** The current state.
101
+ - ` starsSelected ` ** [ Number] [ 20 ] ** The current state.
101
102
- ` selectStar ` ** [ Function] [ 17 ] ** A setter function to set the state.
102
- - ` totalStars ` ** [ Number] [ 19 ] ** This number is our "iterator".
103
+ - ` totalStars ` ** [ Number] [ 20 ] ** This number is our "iterator".
103
104
104
105
### Examples
105
106
@@ -152,6 +153,8 @@ JSS - JavaScript CSS
152
153
153
154
[ 17 ] : https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function
154
155
155
- [ 18 ] : https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object
156
+ [ 18 ] : ./StarRating.png
156
157
157
- [ 19 ] : https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number
158
+ [ 19 ] : https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object
159
+
160
+ [ 20 ] : https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number
0 commit comments