Need help with yarsk?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

195 Stars 38 Forks 47 Commits 9 Opened issues


Don't use this, use Create React App

Services available


Need anything else?

Contributors list


Yet Another React Starter Kit.

Everyone has one, here's mine.


  • React, of course.
  • Webpack for asset bundling.
  • Hot reloading enabled out of the box. Changes to React components will show in the browser immediately without a full reload thanks to react-transform-hmr.
  • Babel for ES6+ transpilation.
  • SASS (SCSS or Sass style), Less, and Autoprefixer enabled by default through Webpack.
  • Image loaders setup and ready to go so you can reference your images as
    statements in JS, or just use
    as usual in CSS and Webpack will take care of the rest. See the Header component and the Application component stylesheet for examples of each.
  • Karma + Mocha + Enyzme for testing. Istanbul and isparta are also activated with
    for code coverage analysis, even on your ES6 classes. See Testing below for more info.
  • Production configuration with best practices applied for optimizing React file size. The bundled JS file produced from this example is right at 40KB minified and gzipped. See Building below for more info.
  • Built-in command for publishing your app to GitHub pages. See Building below for more info.
  • Optional support for ESLint via babel-eslint.

This kit is intentionally missing a specific Flux implementation, or any other non-essential library, as I use this as a base for experimenting with various parts of the React ecosystem.

In the wild


Fork this repo, then run:

npm install
npm start

That will fire up a webpack dev server in hot mode. Most changes will be reflected in the browser automatically without a browser reload. You can view the app in the browser at



To generate a production build, run:

npm run build

The above command will generate a

folder with the appropriate index.html file along with the minified CSS and JS files.

You can also automatically publish to GitHub pages. Just run this instead of the regular build command:

npm run build:gh

You can then view your app at

. For example, you can load this demo at

Modifying the HTML

The HTML file is generated using the

file. This file is used for both the development and production build.


The tests use Karma, Mocha and Chai through PhantomJS. See the example test in

. The test suite can be run like so:
npm test

To run the tests in watch mode (tests will re-run each time a file changes), use this instead:

npm run test:watch

You can generate code coverage reports with:

npm run test:coverage

See the

directory once that command is completed.

Finally, the repo is Travis ready. The

file should work out of the box, just add your repo in Travis.


If you'd like your JavaScript to be linted, copy the

. I've included my own defaults, feel free to modify them to your own taste. For more information on configuring ESLint, consult its documentation. Linting is run before each webpack build when a
file is present.


An example

file is provided with sensible defaults for JavaScript. Feel free to modify
to match your own preferences, then renamed the file to
and use an IDE or editor that supports EditorConfig.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.