Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
@weprovide/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.
yarn add @weprovide/react-link-renderer
import {LinkRenderer, LinkRendererProvider, LinkRendererProps} from '@weprovide/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.
The npm package @weprovide/react-link-renderer receives a total of 21 weekly downloads. As such, @weprovide/react-link-renderer popularity was classified as not popular.
We found that @weprovide/react-link-renderer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.