Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F4644086
D3616.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D3616.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Mon, Feb 24, 22:32 (21 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2435204
Default Alt Text
D3616.diff (1 KB)
Attached To
Mode
D3616: Restore build chain for React
Attached
Detach File
Event Timeline
Log In to Comment