My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

React, Redux without Webpack :)

Konstantin Tarkus's photo
Konstantin Tarkus
·Jul 23, 2016

Have you ever thought about getting rid of (1) webpack.config.js, (2) all the dev dependencies, and (3) automation scripts in your React project by moving all that stuff into a stand-alone npm module?

This might be possible with react-app npm package! With this tool, the package.json file in your project may look nice and clean, literally:

{
  "private": true,
  "dependencies": {
    "react": "^15.2.1",
    "react-dom": "^15.2.1",
    "react-app", "^1.0.0"
  },
  "devDependencies": {
    "react-app-tools": "^0.2.0",
  },
  "scripts": {
    "build": "react-app build",
    "start": "react-app run",
  }
}

react-app-tools will give you a working set of tools (internally using Webpack), pre-configured for building and testing your React apps without a need of creating any configuration files. Yet, you will be able to tweak the default config if needed.

Give it a try! Just create a new folder, then:

> npm install -g react-app
> react-app new        # Scaffold a new project
> react-app run        # Launch your React app

Share your feedback here or send me a direct message on Twitter, this will help to shape the core of this project and decide what features it should provide out of the box. Thanks!

GitHub: https://github.com/kriasoft/react-app

Twitter: https://twitter.com/ReactSDK