Dynamic Tag Name Props in React (with TypeScript)

from blog Aleksandr Hovhannisyan, | ↗ original
Sometimes, a React component needs to allow users to render a custom tag. Here's how you can pass dynamic tag names as props.