Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
react-npm-skeleton
Advanced tools
A skeleton project for creating react components packaged with npm
Basic React app. An ES6 skeleton project for creating react components packaged with npm. This project just aim to display Hello World with React.
import React,{Component} from 'react';
import ReactDOM from 'react-dom';
import HelloWorld from 'react-npm-skeleton';
class App extends Component {
constructor(props){
super(props);
}
render() {
return(
<div>
<HelloWorld />
</div>
);
}
}
ReactDOM.render(<App />,document.querySelector('.container'));
This example would render: "Hello World" in H2 tag into the container element on the page.
Clone the repo as a new project:
git clone https://github.com/lobdev/react-npm-skeleton.git <shiny-new-project>
Start Server:
First you have to replace the lib/component/hello_world.js to server.js in package.json
cd shiny-new-project
npm i
npm start
Run App:
npm start command automatically initiate browser at 3000 port
http:://localhost:3000
Run tests:
cd shiny-new-project
npm i
npm test
Make sure you configure your editor/IDE to use:
.editorconfig
.eslintrc
FAQs
A skeleton project for creating react components packaged with npm
The npm package react-npm-skeleton receives a total of 1 weekly downloads. As such, react-npm-skeleton popularity was classified as not popular.
We found that react-npm-skeleton 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.