New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

tdh-react-library

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tdh-react-library

Small React library that exposes a header HTML and render function

latest
npmnpm
Version
1.0.4
Version published
Maintainers
1
Created
Source

tdh-react-library

Small demo React library that exposes a header HTML string and a render function.

Build:

cd packages/tdh-react-library
npm install
npm run build

This produces dist/index.umd.js (UMD) and dist/index.esm.js (ESM).

Publishing:

  • Make sure name in package.json is unique on npm.
  • npm login
  • npm publish --access public

After publish you can load from unpkg/jsdelivr, for example:

UMD URL:

https://unpkg.com/tdh-react-library@1.0.0/dist/index.umd.js

In the Angular app we call DynamicReactService.loadAndMountHtml('tdh-react-library', '.dynamic-header-container', { cdn: 'unpkg', version: '1.0.0', path: '/dist/index.umd.js', global: 'TdhReactLibrary' }) to load and mount the header.

Keywords

tdh

FAQs

Package last updated on 12 Jan 2026

Did you know?

Socket

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.

Install

Related posts