100 JS Functions

Beginner

1. CurrentYear

2. SimpleCounter

3. DoubleNumber

4. CreateColor

5. DynamicGrid

6. DynamicPictureSize

7. RandomButton

8. TabbedNavigation

9. MathOperator

10. GuessTheNumber

11. BetweenDates

12. Reactions

13. FeedTheBunny

14. Countdown

15. ClickFast

16. SkillsForJobs

17. UsersTabel

18. TodoList

19. UserSearch

20. SpendingInfo

12.Reactions

Write a React component named Reactions that renders 4 buttons, one for each reaction type:

• Like šŸ‘

• Dislike šŸ‘Ž

• Cry 😭

• Laugh šŸ˜†

When clicking a button, a reaction of that type is added.

Below the buttons we'll render a paragraph with the reactions added. For example, if we click each reaction once, we'll show:

šŸ‘ 1, šŸ‘Ž 1, 😭 1, šŸ˜† 1

Initially the paragraph will render: "No reactions yet."

Example 1

Input

No input props

Demo

Open demo in new window

You'll see test results here!