GithubHelp home page GithubHelp logo

redux-basic-example's Introduction

react-router-redux basic example

This is a basic example that demonstrates rendering components based on URLs with react-router as well as connecting them to Redux state. It uses both elements as well as the push action creator provided by react-router-redux.

This example also demonstrates integration with redux-devtools ^3.0.0

To run, follow these steps:

  1. Install dependencies with npm install in this directory (make sure it creates a local node_modules)
  2. By default, it uses the local version from src of react-router-redux, so you need to run npm install from there first. If you want to use a version straight from npm, remove the lines in webpack.config.js at the bottom.
  3. Start build with npm start
  4. Open http://localhost:8080/

If you want to run the example from the npm published version of react-router-redux, remove the alias in webpack.config to the source from line 21.

This example uses the latest version, switch to a specific tag to use a stable version:

e.g. react-router-redux tag 1.0.2

redux-basic-example's People

Contributors

luozhihao avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.