
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@mskcc/components-react
Advanced tools
**Deprecated**: This package has been deprecated. We recommend using `@mskcc/carbon-react`instead.
Deprecated: This package has been deprecated. We recommend using @mskcc/carbon-reactinstead.
DSM React Component TypeScript and JavaScript transpiler.
This setup is meant for developing React component libraries that can be published to NPM.
# npm
npm install @mskcc/components-react
# yarn
yarn @mskcc/components-react
Import into your component
import { Header, Footer } from '@mskcc/components-react';
If you get a hook error, you'll need to point
component-reactto the package'sreact and react-domyou're trying to run.// in demo-react-spa directory cd node_modules/react && npm link cd .../react-dom && npm link // Go to components-react direction npm link react npm link react-dom
/dist.src/ts with it being exported from src/index.ts.
demo directory has a lightweight page that will render your component./dist. No symlinking required via Parcel's aliasing.Code quality is set up for you with prettier and eslint. Adjust the respective fields in package.json accordingly.
This is the folder structure we set up for you:
/demo
index.html # add cdn and other header elements here
index.tsx # add your component
package.json
tsconfig.json
/src
index.ts # export all your components here
/components # house your components here
rollup.config.js # config file for transpiling to CJS, ESM, UMD
tsconfig.json # config file to handle and compiling TypeScript files
This package uses Rollup as a bundler and generates multiple rollup configs for various module formats and build settings.
tsconfig.json is set up to interpret dom and esnext types, as well as react for jsx. Adjust according to your needs.
CJS, ESModules, and UMD module formats are supported.
The appropriate paths are configured in package.json and dist/index.js accordingly.
The Playground is just a simple Parcel app, you can deploy it anywhere you would normally deploy that.
# components-react/demo/package.json
npm run build # builds to dist
always use named exports. Code split inside your React app instead of your React library.
FAQs
**Deprecated**: This package has been deprecated. We recommend using `@mskcc/carbon-react`instead.
The npm package @mskcc/components-react receives a total of 0 weekly downloads. As such, @mskcc/components-react popularity was classified as not popular.
We found that @mskcc/components-react demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.