Skip to content

Commit 332a8aa

Browse files
author
Peng.Li
committed
jquery demo
1 parent fbd8be5 commit 332a8aa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

public/entry.jsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
import Hello from './hello.jsx';
22
import React from 'react';
33
import ReactDOM from 'react-dom';
4+
import $ from 'jquery';
45

56
ReactDOM.render(
67
<Hello />,
78
document.getElementById("content")
89
);
910

11+
// use jquery
12+
console.log($('#content').text());
13+
1014
// Notice!!!
1115
// Following is required to make reloading happen
1216
if (module.hot) {

0 commit comments

Comments
 (0)