#Frontend
-
Common Mistakes
- Remember when writing the callback function for `onClick`, the `MouseEvent` should be the `React's type` instead of the `vanilla javascript` one
-
Conditional Rendering
- `if` `&&` and `?:` operators can be used to render JSX conditionally.
-
Heads-up
- Under the hood, JSX is transformed into plain JavaScript objectcs and you can't return two objects from a function without wrapping them into an arr...
-
How to use useContext correctly in React
- Create a folder named `contexts` in the `src` folder.
-
onClick event is not triggered on iPhone
```tsx