Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

create-react-class

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-react-class - npm Package Compare versions

Comparing version 1.1.1 to 1.2.0

11

lib/react-class.js

@@ -6,10 +6,17 @@

var importReact = "import React, { Component, PropTypes } from 'react'; \n\n";
var classDeclaration = `class ${className} extends Component { } \n\n`;
var classDeclaration = `class ${className} extends Component { \n\n`;
var constructor = 'constructor(props) { super(props); } \n\n';
var render = 'render() { return ( <div> </div> ); } \n\n} \n\n';
var propTypes = `${className}.propTypes = { } \n\n`
var exportDefault = `export default ${className};`
return importReact.concat(classDeclaration).concat(propTypes).concat(exportDefault);
return importReact.concat(classDeclaration)
.concat(constructor)
.concat(render)
.concat(propTypes)
.concat(exportDefault);
}
exports.createReactClassStructure = createReactClassStructure;

2

package.json
{
"name": "create-react-class",
"version": "1.1.1",
"version": "1.2.0",
"description": "Node module to create the react class structure",

@@ -5,0 +5,0 @@ "bin": {

# Create react class
Create react class is a module to quickly create a react class. You can find him in the npm site [create-react-class](https://www.npmjs.com/package/create-react-class).
Create react class is a module to quickly create a ES6 react class. You can find him in the npm site [create-react-class](https://www.npmjs.com/package/create-react-class).

@@ -35,2 +35,10 @@ ### Installation

### Example
```sh
$ reate-react-class --class MyClass
```
![alt tag](http://image.prntscr.com/image/24ac41da59e5477ea87e9d4916d8476b.png)
### Validations

@@ -37,0 +45,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc