
Research
Security News
The Landscape of Malicious Open Source Packages: 2025 Mid‑Year Threat Report
A look at the top trends in how threat actors are weaponizing open source packages to deliver malware and persist across the software supply chain.
@dotcms/react
Advanced tools
Official React Components library to render a dotCMS page.
@dotcms/react
is the official set of React components and hooks designed to work seamlessly with dotCMS, making it easy to render dotCMS pages an use the page builder.
Install the package via npm:
npm install @dotcms/react
Or using Yarn:
yarn add @dotcms/react
DotcmsLayout
A functional component that renders a layout for a dotCMS page.
import { DotcmsLayout } from '@dotcms/react';
const MyPage = ({ entity }) => {
return <DotcmsLayout entity={entity} />;
};
useDotcmsPageContext
A custom React hook that provides access to the PageProviderContext
.
PageProviderContext | null
: The context value or null
if it's not available.import { useDotcmsPageContext } from '@dotcms/react';
const MyComponent = () => {
const context = useDotcmsPageContext();
// Use the context
};
usePageEditor
A custom React hook that sets up the page editor for a dotCMS page.
PageEditorOptions
- The options for the page editor. Includes a reloadFunction
and a pathname
.React.RefObject<HTMLDivElement>[]
: A reference to the rows of the page.import { usePageEditor } from '@dotcms/react';
const MyEditor = () => {
const rowsRef = usePageEditor({ pathname: '/my-page' });
// Use the rowsRef
};
PageProvider
A functional component that provides a context for a dotCMS page.
import { PageProvider } from '@dotcms/react';
const MyApp = ({ entity }) => {
return <PageProvider entity={entity}>{/* children */}</PageProvider>;
};
GitHub pull requests are the preferred method to contribute code to dotCMS. Before any pull requests can be accepted, an automated tool will ask you to agree to the dotCMS Contributor's Agreement.
dotCMS comes in multiple editions and as such is dual licensed. The dotCMS Community Edition is licensed under the GPL 3.0 and is freely available for download, customization and deployment for use within organizations of all stripes. dotCMS Enterprise Editions (EE) adds a number of enterprise features and is available via a supported, indemnified commercial license from dotCMS. For the differences between the editions, see the feature page.
If you need help or have any questions, please open an issue in the GitHub repository.
Always refer to the official DotCMS documentation for comprehensive guides and API references.
Source | Location |
---|---|
Installation | Installation |
Documentation | Documentation |
Videos | Helpful Videos |
Forums/Listserv | via Google Groups |
@dotCMS | |
Main Site | dotCMS.com |
FAQs
Official React Components library to render a dotCMS page.
We found that @dotcms/react 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.
Research
Security News
A look at the top trends in how threat actors are weaponizing open source packages to deliver malware and persist across the software supply chain.
Security News
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.
Security News
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.