Sign Up

Sign In

Forget Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

You must login to ask question.

Discy Latest Questions

  • 0

I was trying to implement authenticated routes but found that React Router 4 now prevents this from working: <Route exact path="/" component={Index} /> <Route path="/auth" component={UnauthenticatedWrapper}> <Route path="/auth/login" component={LoginBotBot} /> </Route> <Route path="/domains" component={AuthenticatedWrapper}> <Route exact path="/domains" component={DomainsIndex} ...

  • 0

I’m trying to add a React map component to my project but run into an error. I’m using Fullstack React’s blog post as a reference. I tracked down where the error gets thrown in google_map.js line 83: function _classCallCheck(instance, Constructor) { ...

  • 0

I’m trying to create a wrapper component around the react-router-dom NavLink component. I would like my custom component to accept all of NavLinks props, and proxy them down to NavLink. However when I do this, I’m getting: Warning: React does not recognize the staticContext prop on a DOM ...

  • 0

I just tried to upgrade my React app to react-router – 4.0.19 to 4.0.20 react- 16.0.30 to 16.0.34 typescript- version “2.7.0-insiders.20180108” In my app, wherever I am using ‘withRouter’, I now get cryptic Typescript errors. I even replaced all interface props with ‘any’ just ...

  • 0

I’m trying to route programatically using this.props.history.push(..) but it doesn’t seem to work. Here’s the router: import { BrowserRouter as Router, Route } from 'react-router-dom';<Router> <Route path="/customers/" exact component={CustomersList} /> <Route path="/customers/:id" exact component="{Customer} /> </Router> In CustomerList, a list of customers is rendered. Clicking on a ...

  • 0

I’ve been having some trouble with react router (i’m using version^4.0.0). this is my index.js import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; import { Router, Route, Link, browserHistory } from 'react-router';ReactDOM.render( <Router history={browserHistory} > <Route ...

  • 0

Trying to get react-router (v4.0.0) and react-hot-loader (3.0.0-beta.6) to play nicely, but getitng the following error in the browser console: Warning: React.createElement: type is invalid — expected a string (for built-in components) or a class/function (for composite components) but got: undefined. ...

close