Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit e190f5a

Browse files
author
Josiah Nunemaker
committedOct 26, 2018
Remove jQuery dependancy in JSX demo to simplify example
1 parent 1a9d4f9 commit e190f5a

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed
 

‎jsx/package.json

-2
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,10 @@
2828
"devDependencies": {
2929
"typescript": "latest",
3030
"http-server": "0.8.0",
31-
"@types/jquery": "^2",
3231
"@types/react-dom": "^15",
3332
"@types/react": "^15"
3433
},
3534
"dependencies": {
36-
"jquery": "^3.3.1",
3735
"react": "^15.6.1",
3836
"react-dom": "^15.6.1",
3937
"requirejs": "^2.1.20"

‎jsx/src/app.tsx

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import * as React from 'react';
22
import * as ReactDOM from 'react-dom';
3-
import * as $ from 'jquery';
43
import {Greeter as Greetifier, GreeterProps as GreeterProps} from 'greeter';
54

65
function getRandomGreeting() {
@@ -12,11 +11,11 @@ function getRandomGreeting() {
1211
}
1312
}
1413

15-
$(() => {
14+
(() => {
1615
let props: GreeterProps = {
1716
whomToGreet: 'world!',
1817
};
1918

2019
ReactDOM.render(<Greetifier {...props} greeting={getRandomGreeting} />, $('#output').get(0));
21-
});
20+
})();
2221

0 commit comments

Comments
 (0)
Failed to load comments.