
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.
react-test-library-component
Advanced tools
Default configuration for creating a react library compoenet
This is a basic configuration project to get started on publishing a library of a react component on npm.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
npm install react-test-library-component
Fork or clone the repository https://github.com/andreeasimona/react-test-library-component
Install the dependencies
npm install
Follow the instructions in src/index.js to add your first changes.
In package.json change the following lines
{
....
"name": "Change this for your library name for example your-component-name",
"version": "Change this for your version number",
....
"author": "Add yourself as the author",
....
"repository": {
"url": "Change this for your github repository"
},
....
"bugs": {
"url": "Change this for your github repository"
},
"homepage": "Change this for your github repository"
}
....
Login into your account
npm login
Publish
npm run build
npm publish
In the current project
npm run build
npm link
Use this in the project where you want to use/test your new library
npm link your-component-name
Import the component in the target project
....
import YourComponentName from 'your-component-name';
....
<YourComponentName />
....
This project is licensed under the MIT License
FAQs
Default configuration for creating a react library compoenet
We found that react-test-library-component demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.