React Flash Cards
Resources:
Click on a card to reveal the answer.
Why would you need to convert a component to a client component
To enable interactivity, for example 'onClick' handlers
What is the syntax to pass parameters in an onClick function for JSX?
onClick={() => { handleClickName('mario'); }}
How do you convert a component to a client component.
insert 'use client'; at the top of the document
When adding styles in JSX, Why do you use two sets of brackets
The outer brackes are to enable javascript within JSX. The inner set is the style object being used.