Skip to content

Instantly share code, notes, and snippets.

@vschoettke
vschoettke / redux-react-router-problem.js
Created March 14, 2017 09:58
Simple Example to demonstrate problem with react-redux connect() function and react-router v4
// Example of non-working react-router v4
// If <Router> is moved into BasicExample
// OR
// redux connect() call is removed routing will work again
// Tested with:
// ├─ react-dom@15.4.2
// ├─ react-redux@5.0.3
module Main exposing (..)
import Html exposing (Html, ul, li, div, text)
import Html.App as Html
import Html.Events exposing (onMouseEnter)
main =
Html.beginnerProgram { model = 0, view = view, update = update }