Because of the above line, it is not possible to use a custom component in the "as" of a Link component. Otherwise, it would be possible to use it as shown below:
import { Link } from '@inertiajs/react';
import { Button } from './components';
...
<Link as={Button}>Foo</Link>
...
Would it be possible to remove the above line to enable this use case?
Version:
@inertiajs/react
version: 1.0.14Describe the problem:
https://github.com/inertiajs/inertia/blob/2ebd86224d2c12fdad4e4b23276129832754cf6d/packages/react/src/Link.ts#L114
Because of the above line, it is not possible to use a custom component in the "as" of a Link component. Otherwise, it would be possible to use it as shown below:
Would it be possible to remove the above line to enable this use case?
Originally brought up by @bobbypiper in https://github.com/inertiajs/inertia/discussions/998