How to use React Router with Electron?

后端 未结 7 926
生来不讨喜
生来不讨喜 2020-12-14 00:08

Using this boilerplate as reference I created an Electron app. It uses webpack to bundle the scripts and express server to host it.

Webpack config is practically sam

7条回答
  •  北海茫月
    2020-12-14 00:22

    What about simply using Switch to default to "/" as follows:

    
      
      
      
       }/>
    
    

    This way, "/index.html" will redirect to "/"

提交回复
热议问题