File tree Expand file tree Collapse file tree 4 files changed +7
-49
lines changed
jbrowse/src/client/JBrowse Expand file tree Collapse file tree 4 files changed +7
-49
lines changed Original file line number Diff line number Diff line change 11import React from 'react' ;
22import ReactDOM from 'react-dom' ;
3- import { AppContainer } from 'react-hot-loader' ;
43
54import View from './Browser' ;
65
76const render = ( ) => {
8- ReactDOM . render (
9- < AppContainer >
10- < View />
11- </ AppContainer > ,
12- document . getElementById ( 'app' )
13- )
7+ ReactDOM . render ( < View /> , document . getElementById ( 'app' ) ) ;
148} ;
159
16- declare const module : any ;
17-
18- if ( module . hot ) {
19- module . hot . accept ( ) ;
20- }
21-
2210render ( ) ;
Original file line number Diff line number Diff line change 11import React from 'react' ;
22import ReactDOM from 'react-dom' ;
3- import { AppContainer } from 'react-hot-loader' ;
43import { App } from '@labkey/api' ;
54
65import StandaloneSearch from '../StandaloneSearch' ;
76
8- App . registerApp < any > ( 'jbrowseSearchWebpart' , ( target : string , sessionId : string ) => {
9- ReactDOM . render (
10- < AppContainer >
11- < StandaloneSearch sessionId = { sessionId } />
12- </ AppContainer > ,
13- document . getElementById ( target )
14- ) ;
15- } , true /* hot */ ) ;
7+ const render = ( target : string , sessionId : string ) => {
8+ ReactDOM . render ( < StandaloneSearch sessionId = { sessionId } /> , document . getElementById ( target ) ) ;
9+ } ;
1610
17- declare const module : any ;
11+ App . registerApp < any > ( 'jbrowseSearchWebpart' , render , true /* hot */ ) ;
Original file line number Diff line number Diff line change 11import React from 'react' ;
22import ReactDOM from 'react-dom' ;
3- import { AppContainer } from 'react-hot-loader' ;
43
54import VariantTable from './VariantTable' ;
65
76const render = ( ) => {
8- ReactDOM . render (
9- < AppContainer >
10- < VariantTable />
11- </ AppContainer > ,
12- document . getElementById ( 'app' )
13- )
7+ ReactDOM . render ( < VariantTable /> , document . getElementById ( 'app' ) ) ;
148} ;
159
16- declare const module : any ;
17-
18- if ( module . hot ) {
19- module . hot . accept ( ) ;
20- }
21-
2210render ( ) ;
Original file line number Diff line number Diff line change 11import React from 'react' ;
22import ReactDOM from 'react-dom' ;
3- import { AppContainer } from 'react-hot-loader' ;
43
54import VariantTable from './VariantTable' ;
65
76const render = ( ) => {
8- ReactDOM . render (
9- < AppContainer >
10- < VariantTable />
11- </ AppContainer > ,
12- document . getElementById ( 'app' )
13- )
7+ ReactDOM . render ( < VariantTable /> , document . getElementById ( 'app' ) ) ;
148} ;
159
16- declare const module : any ;
17-
18- if ( module . hot ) {
19- module . hot . accept ( ) ;
20- }
21-
2210render ( ) ;
You can’t perform that action at this time.
0 commit comments