Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

pure components

import { withRouter } from 'react-router-dom';

class MyComponent extends React.Component {
  render () {
    this.props.history;
  }
}

withRouter(MyComponent);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pure #components
ADD COMMENT
Topic
Name
7+8 =