본문 바로가기

REACT

(187)
[Epic React][Build an Epic React App][Router][라우터] bookshelf/INSTRUCTIONS.md at exercises/05-routing · kentcdodds/bookshelf (github.com) GitHub - kentcdodds/bookshelf: Build a ReactJS App workshop Build a ReactJS App workshop. Contribute to kentcdodds/bookshelf development by creating an account on GitHub. github.com Background CSR에서 Routing 구현 시, URL을 변경하는 방법을 제공하고, URL에 맞는 UI를 그린다. URL은 틀림없이 웹의 최고의 기능 중 하나입니다. 한 사용자가 링크를 다른 사용자와 공유하여 특정 웹사이트의 ..
[Epic React][Build an Epic React App][Authentication][인증] bookshelf/INSTRUCTIONS.md at exercises/04-authentication · kentcdodds/bookshelf (github.com) GitHub - kentcdodds/bookshelf: Build a ReactJS App workshop Build a ReactJS App workshop. Contribute to kentcdodds/bookshelf development by creating an account on GitHub. github.com Background HTTP requests 인증 특정 사용자에게 서비스를 제공하기 위해선 사용자 식별이 필요하며, 해당 사용자의 정보의 보안을 유지할 필요가 있다. 보통 id/pw 방법을 많이 사용한다. 특정 사용자를 ..
[Epic React][실전] 스타일 추가하기 with Emotion👩‍🎤 bookshelf/INSTRUCTIONS.md at exercises/02-styles · kentcdodds/bookshelf (github.com) GitHub - kentcdodds/bookshelf: Build a ReactJS App workshop Build a ReactJS App workshop. Contribute to kentcdodds/bookshelf development by creating an account on GitHub. github.com Background React 앱의 스타일을 지정하는 방법에는 여러 가지가 있으며 각 접근 방식에는 고유한 트레이드오프가 있다. 하지만 궁극적으로 모두 스타일시트와 인라인 스타일이다. 웹팩을 사용하기 때문에 CSS 파일을 애플리케이션으..
Intellij ,Webstorm에서 jsconfig.js 사용하기. React 개발 환경 구성 (react, webstorm) | KihoonKim:Dev React 개발 환경 구성 (react, webstorm) 개발 tool은 webstorm 을 사용하고, react는 create-react-app 을 통해 생성하도록 하겠습니다. npm 5 버전 이상 설치되어 있어야 합니다. Create React App eslint 설정 상대경로 지옥 피하기. jsconfig.json 설정. Unreso kihoonkim.github.io 링크만 걸어둔다.
[Epic React][실전] Render a React App bookshelf/logo.js at exercises/01-bootstrap · kentcdodds/bookshelf (github.com) GitHub - kentcdodds/bookshelf: Build a ReactJS App workshop Build a ReactJS App workshop. Contribute to kentcdodds/bookshelf development by creating an account on GitHub. github.com 모든 React 앱의 첫 번째 단계는 컴포넌트를 만들고 페이지에 렌더링하는 것이다 이는 React 및 ReactDOM을 가져와서 이를 사용하여 React Component를 만들고 이를 div로 렌더링하는 것이다. 주의 : css는 미적용 상태..
React Remix 신상 React framework 간단하게 살펴보기 Remix - Build Better Websites Remix - Build Better Websites Remix is a full stack web framework that lets you focus on the user interface and work back through web fundamentals to deliver a fast, slick, and resilient user experience. People are gonna love using your stuff. remix.run Why I Love Remix (kentcdodds.com) Why I Love Remix I've written tens of thousands of lines of code with Remix and ..
SuspenseList 통해 서스펜스 그룹화 Suspense로 코드스플리팅 해서 각 View를 비동기로 가져올때, 도착 순서대로만 보여준다면 레이아웃도 깨지면서 사용자들 눈에도 이상하게 보일 것이다. 보통 사람들이 기대하는 순서는 위아래, 왼오른쪽 배치이기 때문이다. 갑자기 아래쪽의 오른쪽 요소부터 나타난다면? 따라서 비동기 렌더링에도 질서가 필요하다. SuspenseList 컴포넌트는 아래와 같은 props를 갖고 있다: revealOrder: suspending 컴포넌트들이 그려질 순서 {undefined}: (default) 데이터가 도착하는 순서대로 "forwards": 앞에 있는 컴포넌트가 suspending이 끝나야 다음 것을 보여줌 (앞->뒤) "backwards": 뒤에 있는 컴포넌트가 suspending이 끝나야 다음 것을 보여줌 ..
Suspense with a Custom Hook 훅의 장점은 인터랙션, 사이드이펙트, 메모이제이션을 추상화 / 캡슐화 할 수 있다는 점 위 로직들을 별도로 분리하여 재사용 할수 있다는 것이다. 아래와 같이, 데이터와 상태만 남기고 업데이트 코드를 전부 훅 안에 캡슐화 할 수 있다. (isPending은 애니메이션 지연 시간 의미) const [pokemonResource, isPending] = usePokemonResource(pokemonName) 구현은 아래와 같이 한다. const SUSPENSE_CONFIG = { timeoutMs: 4000, busyDelayMs: 300, busyMinDurationMs: 700, } const PokemonResourceCacheContext = React.createContext({}) function..