Page MenuHomeDevCentral

D3616.id9354.diff
No OneTemporary

D3616.id9354.diff

diff --git a/.gitignore b/.gitignore
--- a/.gitignore
+++ b/.gitignore
@@ -17,3 +17,4 @@
# NPM
node_modules/
bundle.js
+package-lock.json
diff --git a/gadgets/generators/app.js b/gadgets/generators/app.js
--- a/gadgets/generators/app.js
+++ b/gadgets/generators/app.js
@@ -12,12 +12,14 @@
Dependencies
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
-require('babel/polyfill');
+require('@babel/polyfill');
var React = require('react');
var Select = require('react-select');
var Textarea = require('react-textarea-autosize');
+const createReactClass = require('create-react-class');
+
/* -------------------------------------------------------------
Strings and Array prototype functions
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
@@ -130,7 +132,7 @@
Application UI
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
-var App = React.createClass({
+var App = createReactClass({
getDefaultProps: function () {
return {
searchable: true,
diff --git a/package.json b/package.json
--- a/package.json
+++ b/package.json
@@ -6,13 +6,15 @@
"test": "echo \"Error: no test specified\" && exit 1"
},
"dependencies": {
- "react-tools": ">= 0.13.3",
- "react-select": ">= 0.4.9",
- "react-textarea-autosize": ">= 2.3.1",
- "babel": ">= 5.5.8",
- "browserify": ">= 10.2.4",
- "reactify": ">= 1.1.1",
- "uglifyify": ">= 2.4.23"
+ "@babel/polyfill": "^7.12.1",
+ "babel-cli": "^6.26.0",
+ "browserify": "^10.2.4",
+ "create-react-class": "^15.7.0",
+ "react-select": "^0.4.9",
+ "react-textarea-autosize": "^2.3.1",
+ "react-tools": "^0.13.3",
+ "reactify": "^1.1.1",
+ "uglifyify": "^2.4.23"
},
"repository": {
"type": "git",

File Metadata

Mime Type
text/plain
Expires
Wed, Dec 18, 23:51 (8 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2305743
Default Alt Text
D3616.id9354.diff (1 KB)

Event Timeline