12 Days of Baddass Courses sale! Get instant access to the entire egghead library of courses and lessons for 58% off.

Runs out in:
15 : 06 : 03 : 27
Join egghead, unlock knowledge.

Want more egghead? It's 58% off for a limited time only!

This lesson is for members. Join us? Get access to all 3,000+ tutorials + a community with expert developers around the world.

Unlock All Content for 40% Off
Become a member
to unlock all features

    Bootstrap a Zero Configuration React App with Neutrino

    Mark ShustMark Shust

    Setting up tooling for a basic React app is typically very hard to do and requires a lot of configuration. In this lesson, we will setup a new React project with Neutrino with zero configuration. Neutrino uses Webpack and Babel behind the scenes, so you still get great build technology, but without all the heavy lifting of needing to configure it.



    Become a Member to view code

    You must be a Member to view code

    Access all courses and lessons, track your progress, gain confidence and expertise.

    Become a Member
    and unlock code for this lesson




    Let's create a new project called Foo by making and folder and then going into it. Then we'll add two devDependencies, Neutrino and Neutrino Preset React. Neutrino uses webpack behind the scenes and allows you to build your React app with zero configuration.

    Next, we'll add the React and ReactDOM dependencies. This will download everything we need for our React app. Let's make a source folder for our project code. Then we'll make a very simple React script with the name index.js within our source directory.

    This will render a hello world h1 tag and attach it to a base div element with the ID of root. Note that we are using imports and don't have to figure or set up anything, really, into Babel or webpack. Next, we'll add a scripts definition for a package.json file to start Neutrino. Then we'll kick off our app with Yarn start.

    After you see the build completed text, check a web browser to see our hello world app that runs on port 5000.