어쩌구저쩌구 is missing in props validation
따로 props 타입 선언도 해줘야하고 그 전에 설치도 해줘야함
npm install --save prop-types
import PropTypes from 'prop-types';
any 🙅
array 👉 arrayOf
object 👉 shape
As for "exceptions"
It would seem that some common properties such as props.children or props.className need to be treated as exceptions.
Why should children be an exception?
Most components don't need this.props.children, so that makes it extra important to document children in the prop types.
Generally, you should use PropTypes.node or static type React.Node for children.
It accepts anything that can be rendered: numbers, strings, elements or an array containing these types.
react-modal 라이브러리를 두고 뭐하는걸까.....role='button' tabIndex={0} aria-label='background' 붙임.🙅 for (i = 0; i < l; i++ ) {...}
🙆 for (i = 0; i < l; i+=1 ) {...}
"allowForLoopAfterthoughts": true🙅 you===me?true:false
🙆 you===me
<div className={clsx(styles.modal, { [styles.openModal]: Boolean(open) })}>
npm install clsx 설치하고 행복해지자import cx from "classNames"
<div className={cx('class1','class2')}></div>
git init
git remote add origin 주소
git pull origin develop
git branch -m master develop
git branch feature/내역할
git checkout feature/내역할
git remote-v로
원본 저장소 이름과 fork 저장소 이름 확인 좀 하자....