M
M
Mikhail Zhigarev2017-09-22 18:45:07
JavaScript
Mikhail Zhigarev, 2017-09-22 18:45:07

How to run an application written in React (react-create-app) locally?

Hello. I just started learning React. Made my first app with react-create-app. Did npm run build. And I made a deployment to github using gh-pages.
But the question is, is it possible to make the application work locally when opening the index.html file of the assembly? Now when opening index.html it doesn't show anything.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nicholas, 2017-09-22
@ZhygarevMikhail

After running npm run build, you should have a dist directory.
Now, if you open index.html in this directory, everything will work locally.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question