Skip to content

Commit 58833e4

Browse files
committed
Show how a specific import works
1 parent dcb0d3d commit 58833e4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

demo/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,14 @@ import '../style.css';
77
import React from 'react';
88
import App from './app.jsx';
99

10+
// import through root
1011
import {form} from 'jquery-ui';
1112

13+
// import a specific part
14+
import labels from 'jquery-ui/ui/labels';
15+
1216
// prints out ok! you could use form now
13-
console.log('form', form);
17+
console.log('form', form, 'labels', labels);
1418

1519
main();
1620

0 commit comments

Comments
 (0)