Created
October 3, 2017 19:01
-
-
Save maxkfranz/5d038b6ad787b9cdd25d5630d412d383 to your computer and use it in GitHub Desktop.
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
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