@@ -13,16 +13,16 @@ const {
1313} = process . env ;
1414
1515
16- const Microfrontend1 = ( { history } ) => (
17- < Microfrontend history = { history } host = { microfrontend1Host } name = "Microfrontend1" />
16+ const Microfrontend1 = ( { history, data } ) => (
17+ < Microfrontend history = { history } host = { microfrontend1Host } name = "Microfrontend1" data = { data } />
1818) ;
1919
20- const Microfrontend2 = ( { history } ) => (
21- < Microfrontend history = { history } host = { microfrontend2Host } name = "Microfrontend2" />
20+ const Microfrontend2 = ( { history, data } ) => (
21+ < Microfrontend history = { history } host = { microfrontend2Host } name = "Microfrontend2" data = { data } />
2222) ;
2323
24- const MicrofrontendVueMF = ( { history } ) => (
25- < MicrofrontendVue history = { history } host = { microfrontendVueHost } name = "MicrofrontendVue" />
24+ const MicrofrontendVueMF = ( { history, data } ) => (
25+ < MicrofrontendVue history = { history } host = { microfrontendVueHost } name = "MicrofrontendVue" data = { data } />
2626) ;
2727
2828function App ( ) {
@@ -31,9 +31,9 @@ function App() {
3131 < React . Fragment >
3232 < Header />
3333 < h1 > Goda's microfrontend page</ h1 >
34- < Route exact path = "/microfrontend1" component = { Microfrontend1 } />
35- < Route exact path = "/microfrontend2" component = { Microfrontend2 } />
36- < Route exact path = "/microfrontendVue" component = { MicrofrontendVueMF } />
34+ < Route exact path = "/microfrontend1" component = { ( ) => < Microfrontend1 data = 'microfrontend 1 data' /> } />
35+ < Route exact path = "/microfrontend2" component = { ( ) => < Microfrontend2 data = 'microfrontend 2 data' /> } />
36+ < Route exact path = "/microfrontendVue" component = { ( ) => < MicrofrontendVueMF data = 'microfrontend vue data' /> } />
3737 < Footer />
3838
3939 </ React . Fragment >
0 commit comments