Archives : August-2016

From all tutorial I read they use and setting react-router with “/” for their route path and http://mysite.or/ as their domain. what if I want “http://mysite.or/something” for my base path (home). Do I just need to change(add) the “/” on react-router to become “/something”. or is there a proper way to do this? Source: React ..

Read more

I have a router setup like this. <Route path=”/” component={Layout}> <Route path=”emailactivation/code/:email” component={EmailActivationCode} /> But when I access the page it returns an error and does not load the component correctly. Cannot GET /emailactivation/code/[email protected] I am using webpack-dev-server for the local server. How can I put an email address as the parameter for the page? ..

Read more

I am using react-route first time. when i am trying this, it gives me this warning and its not working “Warning: link is a void element tag and must not have children or use props.dangerouslySetInnerHTML. Check the render method of Loginpanel.” my code is like this. render() { return ( <div > <input type=”email” /> ..

Read more

I’m working on a very simple react app, but when I try to use router in always makes pathname with first letter Capital case and I don’t have any idea why. app.js import React from “react”; import ReactDOM from “react-dom”; import Layout from “./pages/Layout” import Basket from “./pages/Basket” import { Router, Route, IndexRoute, hashHistory } ..

Read more