basic (173) 썸네일형 리스트형 function* yield https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Statements/function* function* - JavaScript | MDN function* 선언 (끝에 별표가 있는 function keyword) 은 generator function 을 정의하는데, 이 함수는 Generator 객체를 반환합니다. developer.mozilla.org [Error] Could not find a declaration file for module 'react' npm i --save @types/react @types/react-dom 설치하면됨 [React.js] withRouter react-router-dom 라우트가 아닌 컴포넌트에서 라우터에서 사용하는 객체 location, match, history 를 사용하려면, withRouter 라는 HoC 를 사용해야한다. [React.js] redux sample //액션 export const ACTION_TYPE = 'ACTION_TYPE'; //액션 생성 함수 export function addAction(text) { return { type: ACTION_TYPE, text, } } //리듀서 함수 function act(state = initialState, action) { if (action.type === 'ACTION_TYPE') { return { text: action.text } } return state; } redux-actions 모듈 사용시 //액션 const ACTION_TYPE = 'ACTION_TYPE'; //액션 생성함수 export const ACTION_TYPE = createAction('ACTION_TYPE', text.. 배경색 투명 background-color: transparent; class 작명법 하위 부류는 __를 통해 표시하고 현재 클래스의 상태 또는 속성에 관련된 클래스를 추가로 넣을 경우 하이픈으로 넣어주자 Material Icon https://material.io/develop/web/getting-started Material Design Build beautiful, usable products faster. Material Design is an adaptable system—backed by open-source code—that helps teams build high quality digital experiences. material.io webpack install -> npm install @material/ripple Material Icons from Google Fonts CDN [React.js] CDN 리액트 프로젝트에 적용하기 (다음 주소 API) 1. CDN 스크립트 태그를 index.html에 넣어준다. 2. 주소 API를 부르는 함수 위에 const daum = window.daum; 이걸 추가 해주면 바로 적용되는 것을 볼 수 있다. 이전 1 ··· 6 7 8 9 10 11 12 ··· 22 다음