In the current version of React Router (v3), you can accept a server response and use to go to the appropriate response page. However, this isn't available in v4 and you have to go about it a different way.

You can use the methods outside of your components…

There is a new hook in React Router >5.1.0 if you are using React >16.8.0 and functional components.

import { useHistory } from "react-router-dom";function HomeButton() {
const history = useHistory();
function handleClick() {
history.push("/home");
}
return (
<button type="button" onClick={handleClick}>
Go home
</button>
);
}

React Router v4

And why ‘rapid prototyping’ isn’t enough to critically impact product design

Illustration: Mike Dodge

UX prototypes can be powerful tools to explore new design concepts, challenge preconceptions, validate assumptions, and bring designs to life. Their ultimate purpose is to facilitate learnings that help effect a better product. In my experience, prototypes that have had a critical impact on a product’s design were those that:

How I built an Alexa-powered rotary phone with a Raspberry PI and some LEDs

TL;DR — I built Alexa into a rotary phone and setup the rotary dialer to trigger actions on my other Alexa devices.

1956 Western Electric Model 500, powered by Alexa

Parts required

  • an old rotary phone
  • a Raspberry PI 3
  • a bread board (used in development)
  • a USB mic (dismantled and rewired)
  • a 1/8" mono patch cable (rewired)
  • a couple…

Mike Dodge

As Principal Design Technologist in Alexa Voice Shopping at Amazon, I design and build prototypes that define the future of voice and multi-model shopping.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store