
Security News
Vite+ Joins the Push to Consolidate JavaScript Tooling
Evan You announces Vite+, a commercial, Rust-powered toolchain built on the Vite ecosystem to unify JavaScript development and fund open source.
@iodigital/react-link-renderer
Advanced tools
This package will enable you to render a custom link component within a component library for example.
This package will enable you to render a custom link component within a component library for example.
npm install @iodigital/react-link-renderer
import {LinkRenderer, LinkRendererProvider, LinkRendererProps} from '@iodigital/react-link-renderer';
import Link from "next/link";
const nextLinkRenderer = ({ href, extraOptions, children }: LinkRendererProps) => {
return (
<Link href={href} {...extraOptions}>
<a>{children}</a>
</Link>
);
}
Surround your main app with a LinkRendererProvider
<LinkRendererProvider linkRenderer={nextLinkRenderer}>
<App />
</LinkRendererProvider>
Now you can use the LinkRenderer component inside your component library to render a link
<LinkRenderer
href="/page-1"
extraOptions={{
prefetch: false, // You can add any option you want and use it in your custom link renderer
}}
>
Go to page 1
</LinkRenderer>
FAQs
This package will enable you to render a custom link component within a component library for example.
We found that @iodigital/react-link-renderer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 8 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Evan You announces Vite+, a commercial, Rust-powered toolchain built on the Vite ecosystem to unify JavaScript development and fund open source.
Security News
Ruby Central’s incident report on the RubyGems.org access dispute sparks backlash from former maintainers and renewed debate over project governance.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.