Skip to content

Instantly share code, notes, and snippets.

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 maxkfranz/5d038b6ad787b9cdd25d5630d412d383 to your computer and use it in GitHub Desktop.
Save maxkfranz/5d038b6ad787b9cdd25d5630d412d383 to your computer and use it in GitHub Desktop.
const React = require('react');
const h = require('react-hyperscript');
class Textbox extends React.Component {
constructor( props ){
super(props);
// props
// defaultValue, value, onClick
}
render(){
let p = this.props;
return h('input[type="text']', p });
}
}
// viewer.js
const TextField = require('material-ui').TextField;
// switch to
const TextField = require('./textbox');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment