This file contains 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
import React, { Component } from 'react' | |
import * as THREE from 'three' | |
// import * as OBJLoader from 'three-obj-loader' | |
// import MTLLoader from 'three-react-mtl-loader' | |
// import OBJLoader from 'three-react-obj-loader' | |
// const loader = require('three-json-loader')(THREE) | |
const OrbitControls = require('three-orbit-controls')(THREE) | |
// OrbitControls: for Camera |
This file contains 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
// CAPITALIZE WORD | |
// ie: Capitalize the first letter | |
const word = 'capitalized' | |
const capitalize = word => [word] | |
.map(letter => letter.slice(0,1).toUpperCase() + letter.slice(1)) | |
.toString() | |
console.log( | |
'Look mom:', |
This file contains 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
import React, { Component } from 'react' | |
import UserDetails from './UserDetails' | |
/** | |
* This utility function allows function calls to be debounced. | |
* @param {Function} func Function that requires debouncing | |
* @param {Number} wait Wait time in milliseconds between successive invocations | |
*/ | |
const debounce = (func, wait) => { | |
let timeout |
This file contains 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
//LOGIN VIEW | |
import { | |
initRememberMe, | |
toggleRememberMe | |
} from './login_actions' | |
class LoginForm extends Component { | |
componentWillMount() { | |
this.props.initRememberMe() | |
} |
NewerOlder