프로젝트
GitHub에서 보기
Lemoncode/react-hooks-by-example
소개
입문 시나리오부터 고급 주제까지 React Hooks를 단계별로 안내하는 예제를 제공합니다.
웹 및 앱 개발측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalReact Hooks By Example
About this examples:
- Each example is focused on a topic (simple and straightforward).
- Each example contains a Readme.md with a step by step guide to reproduce it.
Examples implemented
List of examples:
- 00-boiler-plate: starting point, just a blank create-react-app project (all examples will take this as starting point).
- 01-use-state: adding state (simple element) to a functional component.
- 02-use-state-object: adding state (object) to a functional component.
- 03-component-did-mount: executing some operations when a functional component gets mounted.
- 04-component-unmount: executing cleanup code when a functional component gets unmounted.
- 05-mount-did-update: hooking to mount and component update events.
- 06-ajax-field-change: triggering an ajax call whenever a given field gets updated.
- 07-custom-hooks: creating our custom hook, great to simplify components and get reusable assets.
- 08-pure-component: creating pure functional components.
- 09-pure-component-callback: creating pure functional components, that include function properties in their props.
- 10-use-reducer: useReducer effect, including dispatch.
- 11-use-context: using the useContext hook to get access to the context in one line of code.
- 12-set-state-func: Whe calling setState how to ensure we are using the latest state value.
- 13-async-closure: advanced case, getting fresh data from useState on callbacks.
- 14-useref-dom: using useRef hook to access a DOM element child.
- 15-promise-unmounted: tracking when component is mounted/unmounted to avoid perform a state update on an unmounted component.
- 16-memo-predicate: enhancing rendering performance hooking to 'shouldComponentUpdate'.
- 17-use-debug-value: using built-in hook useDebugValue.
- 18-why-did-you-update: implementing a custom hook to avoid unnecesary re-renders.
About Basefactor + Lemoncode
We are an innovating team of Javascript experts, passionate about turning your ideas into robust products.
Basefactor, consultancy by Lemoncode provides consultancy and coaching services.
Lemoncode provides training services.
For the LATAM/Spanish audience we are running an Online Front End Master degree, more info: http://lemoncode.net/master-frontend
관련 프로젝트 살펴보기
불러오는 중…
