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
var express = require('express'); | |
var morgan = require('morgan'); // 서버 로그 콘솔에 기록 | |
var bodyParser = require('body-parser'); // JSON 형태 데이터 파싱 | |
// EXPRESS 생성 | |
var app = express(); | |
// 3rd party middleware 적용 | |
app.use(morgan('dev')); | |
app.use(bodyParser.json()); |
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
var express = require('express'); | |
var morgan = require('morgan'); // 서버 로그 콘솔에 기록 | |
var bodyParser = require('body-parser'); // JSON 형태 데이터 파싱 | |
// EXPRESS 생성 | |
var app = express(); | |
// 3rd party middleware 적용 | |
app.use(morgan('dev')); | |
app.use(bodyParser.json()); |
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
class ValidationExample extends React.Component { | |
/* ... */ | |
} | |
Content.propTypes = { | |
// JS primitive types | |
optionalArray: React.PropTypes.array, |
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
<div class="avatar"></div> |
NewerOlder