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
class Insert extends React.Component<any, EventState> { | |
public fileUpload = (e: any) => { | |
const reader = new FileReader(); | |
const name = e.target.name; | |
reader.onload = () => { | |
const obj = {}; | |
obj[name] = reader.result; | |
this.setState(obj); | |
}; | |
reader.readAsDataURL(e.target.files[0]); |
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
var fs = require('fs'); | |
// console.log(process.argv); | |
console.log('============================='); | |
console.log('\n'); | |
console.log('신규 컴포넌트를 작성합니다.'); | |
console.log('\n'); | |
console.log('-----------------------------'); | |
if (process.argv.length > 2) { | |
console.log('\n'); | |
const arr = process.argv[2].split("/"); |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder