
Mechanics of React: A Beginner's Intro To React
The React Show
00:00
How to Render a Calendar Component
You can set attributes, which in the React world that we call props for short. And React will pass those to your React components as function arguments. The use state hook and other hooks we haven't talked about yet are nothing fancy. But I promise you, it's pretty easy to use. At least this hook. You can call the use state hook within your calendar component. You can set it up to give the name or index of the month that is currently being viewed. And you set it to a new value when the user clicks a button in your calendar, for example.
Transcript
Play full episode