Created
          June 13, 2018 10:43 
        
      - 
      
 - 
        
Save phusick/f2cd66f104beda80222dd45d2128b427 to your computer and use it in GitHub Desktop.  
    React Route Shapes
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import PropTypes from 'prop-types'; | |
| export default PropTypes.shape({ | |
| action: PropTypes.string.isRequired, | |
| block: PropTypes.func.isRequired, | |
| createHref: PropTypes.func.isRequired, | |
| go: PropTypes.func.isRequired, | |
| goBack: PropTypes.func.isRequired, | |
| goForward: PropTypes.func.isRequired, | |
| length: PropTypes.number.isRequired, | |
| listen: PropTypes.func.isRequired, | |
| location: PropTypes.object.isRequired, | |
| push: PropTypes.func.isRequired, | |
| replace: PropTypes.func.isRequired, | |
| }); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import { shape, string } from 'prop-types'; | |
| export default shape({ | |
| hash: string.isRequired, | |
| key: string.isRequired, | |
| pathname: string.isRequired, | |
| search: string.isRequired, | |
| }); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment