Skip to content

CN-Curriculum/passing-props-react-exercise

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

3.6 Pass a function as prop

// This program should render a random number between 1 and 6 when the button is clicked. // 1. Complete the handleClick function which sets the number rendered when the dice is rolled. // 2. Pass it as a prop called 'handleClick' to the Button component.

About

An empty template for creating HackerRank react tests.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 76.5%
  • HTML 18.3%
  • CSS 5.1%
  • Shell 0.1%