
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-gc is A Node command line tool for quickly generating the framework of React components.
npm install react-gc -g
Install react-gc globally for use in your terminal.
react-gc <filename>
Creates a standard React component:
$ react-gc myComponent
//outputs myComponent.js in current directory:
import React, {Component} from 'react';
import PropTypes from 'prop-types';
class MyComponent extends Component {
constructor(props){
super(props);
}
render(){
return (
<div id="MyComponent">
</div>
)
}
}
MyComponent.propTypes = {
}
export default MyComponent;
react-gc <filename> -p <path>
Creates a standard React component in a new directory (or an existing one):
$ react-gc myComponent -p components
//outputs myComponent.js in ./components/myComponent.js:
import React, {Component} from 'react';
import PropTypes from 'prop-types';
class MyComponent extends Component {
constructor(props){
super(props);
}
render(){
return (
<div id="MyComponent">
</div>
)
}
}
MyComponent.propTypes = {
}
export default MyComponent;
react-gc <filename> -b
Creates a standard React component in a new directory (or an existing one):
$ react-gc myComponent -b
//outputs a myComponent.js in current directory:
import React, {Component} from 'react';
import PropTypes from 'prop-types';
const MyComponent = () => {
return (
<div id="MyComponent">
</div>
)
}
MyComponent.propTypes = {
}
export default MyComponent;
react-gc <filename> -d or react-gc <filename> -s
Creates a standard React component with Redux mapDispatchToProps or mapStateToProps:
$ react-gc myComponent -d
//outputs a myComponent.js in current directory:
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
class MyComponent extends Component {
constructor(props){
super(props);
}
render(){
return (
<div id="MyComponent">
</div>
)
}
}
MyComponent.propTypes = {
}
function mapDispatchToProps(dispatch) {
return {};
}
export default connect(null, mapDispatchToProps)(MyComponent);
FAQs
Simple generator for React components
We found that react-gc 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.