Skip to content

Instantly share code, notes, and snippets.

@alexeisavca
Created June 21, 2015 16:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexeisavca/a513a3a68092f9f77c7f to your computer and use it in GitHub Desktop.
Save alexeisavca/a513a3a68092f9f77c7f to your computer and use it in GitHub Desktop.
React placeholder. I like to develop my apps from top to bottom, so I use this often.
var React = require('react');
module.exports = function(name){
return class extends React.Component{
render(){
return (
<span>Implement {name}</span>
)
}
}
};
/*
Example usage:
var ChatBox = require('placeholder')('chat box');
then, somewhere:
<ChatBox/>
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment