Key Prop

Notlar:

// Örnek
{items.map(item => (
  <ListItem key={item.id} value={item.text} />
))}


⚡ Varsayılan Props

Row.defaultProps = {
  type: "vertical",
};

const Row = styled.div`
  display: flex;

  ${(props) => {
    const type = props.type || 'vertical';
    return type === 'horizontal'
      ? css`
          justify-content: space-between;
          align-items: center;
        `
      : css`
          flex-direction: column;
          gap: 1.6rem;
        `;
  }}
`;

Avantajları: