Last active
March 26, 2016 16:10
-
-
Save reharik/f308e48f31d6ac30c01f 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
| // SignInForm.js | |
| import React from 'react'; | |
| var Input = require('./FormElements/Input'); | |
| var SignInForm =() => ( <Input />); | |
| export default SignInForm; | |
| // Input.js | |
| import React from 'react'; | |
| const Input = () => (<input />); | |
| export default Input; | |
| //main.js | |
| import React from 'react' | |
| import ReactDOM from 'react-dom' | |
| var signInForm = require('./components/SignInForm') | |
| console.log('==========signInForm========='); | |
| console.log(signInForm); | |
| console.log('==========ENDsignInForm========='); | |
| ReactDOM.render(<signInForm />, | |
| document.getElementById('root') | |
| ); | |
| ==========signInForm========= | |
| main.js?3479:35 Object {__esModule: true}__esModule: truedefault: SignInForm()arguments: (...)caller: (...)length: 0name: "SignInForm"prototype: SignInFormconstructor: SignInForm()arguments: (...)caller: (...)length: 0name: "SignInForm"prototype: SignInFormconstructor: SignInForm()arguments: (...)caller: (...)length: 0name: "SignInForm"prototype: SignInForm__proto__: ()<function scope>__proto__: Object__proto__: ()<function scope>__proto__: Object__proto__: ()<function scope>__proto__: Object | |
| main.js?3479:36 ==========ENDsignInForm========= |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment