Skip to content

Latest commit

 

History

History
119 lines (88 loc) · 12.5 KB

README.md

File metadata and controls

119 lines (88 loc) · 12.5 KB

React Sandboxes

Repository used to store all sandboxes that I used during workshops.

Sandboxes

context-api

Description Link
🔭 Create context: theme context with setters Open in CodeSandbox
🏈 Showcase creating a Custom Provider and Hook for Context Open in CodeSandbox

forms

Description Link
🔭 React Hook Form Basic example Open in CodeSandbox
🔭 React Hook Form Connected Components Open in CodeSandbox
🔭 React Hook Form Validation examples Open in CodeSandbox

hooks

Description Link
🔭 Hooks: flow Open in CodeSandbox
🔭 useDebugValue: useCounter example Open in CodeSandbox
🔭 useImperativeHandle: inversion of control with input focus Open in CodeSandbox
🔭 useLayoutEffect: Counter Example Open in CodeSandbox
🔭 useLayoutEffect: scroll example Open in CodeSandbox
🔭 useReducer example: Increment/Decrement Open in CodeSandbox
🔭 useRef: long-live objects example Open in CodeSandbox
🔭 useRef: select textarea content on mount Open in CodeSandbox
🔭 useState: Batching Open in CodeSandbox
🔭 useState: Example Open in CodeSandbox
🔭 useState: illustrate pitfall with imperative programming Open in CodeSandbox

mobx-mst

Description Link
🔭 MobX-state-tree example with NFT Pricing Open in CodeSandbox

optimization

Description Link
🏈 Exercise: code splitting Company Map (Solution) Open in CodeSandbox
🏈 Exercise: code splitting Company Map Open in CodeSandbox
🔭 Context API: Context Update and Children update/Memoization Open in CodeSandbox
🏈 Exercise board for performance optimization Open in CodeSandbox
🔭 pitfall: Creating a component from a component Open in CodeSandbox
🏈 Exercise: context improvements Open in CodeSandbox
🔭 React.memo: memoizing a component Open in CodeSandbox
🔭 Separate context state and setters Open in CodeSandbox

patterns

Description Link
🔭 Compound Components Pattern Open in CodeSandbox
🔭 Flexible Compound Components Pattern Open in CodeSandbox
🔭 Recomposable Component Pattern Open in CodeSandbox

portals

Description Link
🔭 Show event bubbling through portals Open in CodeSandbox
🔭 Simple example of using portals Open in CodeSandbox

react-query

Description Link
🔭 React Query Basics Open in CodeSandbox
🔭 useInfiniteQuery example Open in CodeSandbox
🏈 Exercise: useQuery with nftlist (Solution) Open in CodeSandbox
🏈 Exercise: useQuery with nftlist Open in CodeSandbox

react-router

Description Link
🔭 Basics: Routes, Route & Outlet Open in CodeSandbox
🏈 Exercise: Lazy Loading and Suspense with React Router Open in CodeSandbox
🔭 Lazy loading and suspense Open in CodeSandbox
🔭 Testing with MemoryRouter Open in CodeSandbox

react

Description Link
🏈 Showcase all React JSX basics Open in CodeSandbox

reconciliation

Description Link
🔭 Children & reconciliation Open in CodeSandbox

references

Description Link
🔭 Callback Refs: focusing an input Open in CodeSandbox
🔭 forwardRef: custom input Open in CodeSandbox

testing

Description Link
🔭 React Testing Library & Jest: testing a component Open in CodeSandbox
🔭 React Testing Library: testing a hook Open in CodeSandbox