SPORTS-CLUB

Select today’s playing sports

Shoes

Cricket

Playing Time : 35 min

Shoes

Football

Playing Time : 22 min

Shoes

Badminton

Playing Time : 23 min

Shoes

Chess

Playing Time : 34 min

Shoes

Hockey

Playing Time : 20 min

Shoes

Basketball

Playing Time : 39 min

Shoes

Volleyball

Playing Time : 28 min

Shoes

Tennis

Playing Time : 28 min

Shoes

Swimming

Playing Time : 25 min

Shoes

Golf

Playing Time : 27 min

Shoes

Darts

Playing Time : 34 min

Shoes

Cycling

Playing Time : 28 min

Question & Answer

1. How does react work?

Ans : React uses a declarative paradigm that makes it easier to reason about your application and aims to be both efficient and flexible. It designs simple views for each state in your application, and React will efficiently update and render just the right component when your data changes.

2. Difference between props and state?

Ans : Props are used to pass data from one component to another. The state is a local data storage that is local to the component only and cannot be passed to other components. The this. setState property is used to update the state values in the component.Props can be used with state and functional components.State can be used only with the state components/class component (Before 16.0).

3. What does useEffect do?

Ans: The useEffect Hook allows use to perform side effects in components. Some examples of side effects are: fetching data, directly updating the DOM, and timers. useEffect accepts two arguments. The second argument is optional.When we are using something outside of our code this time we are using useEffect.

Farid Hosen

Future Web developer

60kg

Weight

5.5

Height

23years

Age

Add A Break

Playing Details

Playing Time

0min

Break Time

min