Coder Social home page Coder Social logo

Comments (6)

RickWong avatar RickWong commented on June 21, 2024

Maybe because you only have name=... but don't have path=... attributes on the <Route> declarations.

from react-isomorphic-starterkit.

zemd avatar zemd commented on June 21, 2024

@RickWong thank you for your answer, but as you can see here https://github.com/rackt/react-router/blob/master/examples/transitions/app.js there is no path also, and here https://github.com/rackt/react-router/blob/master/docs/api/components/Route.md here is saying that

The path used in the URL. If left undefined, the path will be defined by the name, and if there is no name, will default to /.

also, why does it work only once? after I open page in browser I can navigate to another page, but after I've navigated I can't make it again.

ps to be sure added paths to routes definition, and it works the same, so not solved the issue

from react-isomorphic-starterkit.

RickWong avatar RickWong commented on June 21, 2024

Do you get any console errors (in browser or in your terminal)? I too find it strange that it works just once. What does About.jsx look like?

from react-isomorphic-starterkit.

zemd avatar zemd commented on June 21, 2024

@RickWong no errors, made video https://dl.dropboxusercontent.com/u/19321079/routes.mov

About.jsx is simplest component as it can be

import React from 'react';

const About = React.createClass({
    render() {
        return (
            <div className="container">
                Hello World
            </div>
        );
    }
});


export default About;

from react-isomorphic-starterkit.

RickWong avatar RickWong commented on June 21, 2024

Can you log the value that is passed to this.transitionTo(...) each time you click?

from react-isomorphic-starterkit.

RickWong avatar RickWong commented on June 21, 2024

Closing issue because the problem isn't likely to be caused by the starterkit.

from react-isomorphic-starterkit.

Related Issues (20)

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.