Skip to content

rmosolgo/prop-types

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PropTypes

Generate PropTypes from JSON (try it online):

image

With some limitations:

  • Can't take functions
  • Assumes null is any
  • Assumes any value isRequired
  • Only checks first value of array (assumes all other values are the same type)
  • Assumes that objects with the same keys are meant to be the same shape

Development

  • Run the tests:

    rake test
    
  • Rebuild the Javascript:

    rake compile_js
    
  • Start a preview HTTP server:

    cd web && python -m SimpleHTTPServer
    
  • Push to Github pages:

    rake deploy
    

About

Turn JSON into React.js PropType specification

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published