Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c10d56a

Browse files
add image and demonstrate how to reference that image.
1 parent 6585531 commit c10d56a

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

‎JS/06-react/parcel/StarRating.png

315 KB
Loading[フレーム]

‎JS/06-react/parcel/components/StarRating.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ export const Star = ({ selected = false, onClick = f => f }) => (
6060

6161
/**
6262
* @description - StarRating
63+
[![](./StarRating.png)](./StarRating.png)
6364
- This component will map over the Star Component and increment the key value.
6465
- #1 we set the initial state to 0 and it will increment up to the value of totalStars.
6566
- #2

‎JS/06-react/parcel/tutorial.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ onClick={() => selectStar(currentStar + 1)} // #4
8484
## StarRating
8585

8686
StarRating
87+
[![][18]][18]
8788

8889
- This component will map over the Star Component and increment the key value.
8990
- \#1 we set the initial state to 0 and it will increment up to the value of totalStars.
@@ -95,11 +96,11 @@ StarRating
9596

9697
### Parameters
9798

98-
- `0ドル` **[Object][18]**
99+
- `0ドル` **[Object][19]**
99100
- `0ドル.totalStars`
100-
- `starsSelected` **[Number][19]** The current state.
101+
- `starsSelected` **[Number][20]** The current state.
101102
- `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".
103104

104105
### Examples
105106

@@ -152,6 +153,8 @@ JSS - JavaScript CSS
152153

153154
[17]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function
154155

155-
[18]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object
156+
[18]: ./StarRating.png
156157

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

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /