How to open a react project like an app or by clicking index.htm

I’m working on a React project where we need to open an offline demo app by clicking index.html or another direct link (the person using it has to double-click in something and it should open), without npm start. It’s for an offline demo app that needs to open, simply by clicking something.

I’ve tried changing "homepage": "./",

adding

<script src="https://unpkg.com/react@15/dist/react.js"></script> <script src="https://unpkg.com/react-dom@15/dist/react-dom.js"></script> 

replacing BrowserRouter to HashRouter.

but nothing seems to work. Any idea or tips on how to approach this?

Add Comment
0 Answer(s)

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.