import React from 'react' import Link from 'next/link' export default class UrlPropChange extends React.Component { constructor (props) { super(props) this.state = { previousUrl: {}, url: props.url } } componentWillReceiveProps (nextProps) { this.setState(() => { return { previousUrl: this.props.url, url: nextProps.url } }) } render () { const {previousUrl, url} = this.state return
} }