React.forwardRef
const ForwardedInput = React.forwardRef< HTMLInputElement, { label: string } >(({ label, ...props }, ref) => ( <div> <label>{label}</label> <input ref={ref} {...props} /> </div> ));
A/B/C/D lub 1/2/3/4 — odpowiedzi · ←/→ — nawigacja