
Security News
New React Server Components Vulnerabilities: DoS and Source Code Exposure
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.
@hods/page
Advanced tools
HODS' page component.
First install the package into your project:
npm install -S @hods/page
Then use it in your code as follows:
import React, { createElement as h } from 'react';
import Page from '@hods/page';
export const MyComponent = props => (
<Page
accountHref="#/my-account"
title="Service name"
signOutHref="#/auth/sign-out"
username="User name"
navigation={[
{ href: '/styles', text: 'Styles', active: true },
{ href: '/components', text: 'Components' },
{ href: '/patterns', text: 'Patterns' },
{ href: '/resources', text: 'Resources' },
{ href: '/get-involved', text: 'Get involved' }
]}
footerNavigation={[
{ href: '/feedback', text: 'Feedback' },
{ href: '/help', text: 'Help' },
{ href: 'https://gov.uk/', text: 'Gov.UK home' }
]}
>
<h1>Default page template</h1>
<p>The header inspires trust with the department logo, while the service name helps users understand which service they are using.</p>
<p>The footer includes information about the department with relevant links. White background helps to clearly section the main content area.</p>
</Page>
);
export default MyComponent;
This package also re-styles the secondary button component to have better contrast with the grey background.
Before working on this package you must install its dependencies using the following command:
pnpm install
npm test
npm run build
npm run clean
FAQs
HODS' page component.
The npm package @hods/page receives a total of 432 weekly downloads. As such, @hods/page popularity was classified as not popular.
We found that @hods/page demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.

Security News
GitHub has revoked npm classic tokens for publishing; maintainers must migrate, but OpenJS warns OIDC trusted publishing still has risky gaps for critical projects.