React design patterns

Provider Pattern – when using react createContext and passing data

Presentational and Container Component Pattern components vs containers

Compound Components – parent components sharing state with multiple child components

export default function App() {
  return (
      <Menu defaultSelected="My account">
        <MenuItem value="Profile">Profile</MenuItem>
        <MenuItem value="My account">My account</MenuItem>
        <MenuItem value="Logout">Logout</MenuItem>

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.