Reactjs with cordova

此生再无相见时 提交于 2020-01-24 19:11:06

问题


Can someone help me in setting up configuration to build a Mobile app using reactjs and Cordova. I tried using pasting my react js app to www in Cordova and changing some configuration. But getting white screen. Can someone help me in setting up or some steps need to be followed to get it running.


回答1:


Can you provide more details as to what setup you are using for development and build? Ideally, there should be a command to build, which will generate a bundle.js or a main.js or something similar.

You can then move this file to the www directory in cordova and link to it from www/index.html to get things working.



来源:https://stackoverflow.com/questions/45120850/reactjs-with-cordova

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!