깃을 사용합시다. 깃을 쓰자. 깃을 쓰란 말야!!
-
SVN은 변경이력이 많아질수록 속도가 느리지.
-
커밋 및 처리속도가 빠르다. 변경이력이 많이 축적되어 있어도 속도저하가 거의 없다.
-
-
커밋찍기가 어렵다.
import React from 'react'; | |
import Video from './Video'; | |
class MyGenericApp extends React.Component { | |
render() { | |
return <div> | |
<Video src="my_video_url" poster="my_poster_url" /> | |
</div>; | |
} | |
} |
var path = require('path'); | |
module.exports = { | |
entry: path.resolve(__dirname, 'src') + '/app/index.js', | |
output: { | |
path: path.resolve(__dirname, 'dist') + '/app', | |
filename: 'bundle.js', | |
publicPath: '/app/' | |
}, |
var
는 function-scoped
이고, let
, const
는 block-scoped
입니다.
function-scoped
와 block-scoped
가 무슨말이냐?
import React, { useState } from 'react'; | |
import './scss/App.scss' | |
function App() { | |
const [todoValue, setTodoValue] = useState(''); | |
const [todos, setTodo] = useState([]) | |
const handleChange = e => { | |
setTodoValue(e.target.value); | |
} |