DEV Community

John-Wheater
John-Wheater

Posted on

How to run the React example code in the Bochuk book

I'm just starting React, and have completed the Mozilla tutorial.

Then I bought the Packt book React... by Bochuk, which looks really good (much cheaper from them than from the zon!).

I downloaded the code, which also looks good.

But, the book wisely advises us to run the code samples, and I can't see any way to do this.

Has anyone seen this, and solved it?

On the Mozilla tut, there was a mass of stuff , including node.js, and npm, bundled with the single source file, which slowly grew. To run, you just did 'npm start', and a server on localhost started, and your code ran.

This time I installed node and npm separately, and checked they worked, but still no luck.

There must be a way to run the code. They mention next.js, well on in the book. I tried that, successfully, with the next.js example code, but couldn't see how to do it with the Packt examples.

Help!

PS -- I'm new to DEV, this is my first post, I see the advice to add tags, but not how to do it. Help again:-(...

Top comments (0)