soso-tip icon indicating copy to clipboard operation
soso-tip copied to clipboard

๐Ÿฏ์†Œ์†Œํ•œ ํŒ๋“ค๊ณผ ์ •๋ฆฌ, ๋ฒ„๊ทธ ํ•ด๊ฒฐ๊ธฐ๋ฅผ ๋ชจ์•„๋‘๋Š” ๋ ˆํฌ

Results 49 soso-tip issues
Sort by recently updated
recently updated
newest added

react-hook-form์˜ ๋™์ž‘๋ฐฉ์‹์€ HTML Element๋ฅผ ๋‚ด๋ถ€ `ref`๋กœ ๊ด€๋ฆฌํ•˜๋Š” ๋ฐฉ์‹์ด๋‹ค. ```tsx // useForm 'register'ํ•จ์ˆ˜์˜ ๋งˆ์ง€๋ง‰ ๋ถ€๋ถ„ return (ref: (TFieldElement & Ref) | null) => ref && registerFieldRef(ref, refOrRegisterOptions); // input์˜ ref๋ฅผ attachEventListeners...

react

user snippet ํŒŒ์ผ ์ด๋ฆ„์„ ๊ธฐ์ค€์œผ๋กœ `export default function ํŒŒ์ผ์ด๋ฆ„()`๊นŒ์ง€ ์ƒ์„ฑํ•ด์คŒ ```json { "export default function": { "scope": "javascript,typescript, typescriptreact", "prefix": "edf", "body": [ "export default function $TM_FILENAME_BASE()", ], "description": "export...

## Desc ![image](https://user-images.githubusercontent.com/18658235/124349175-e3961b00-dc28-11eb-8c01-2718f031925d.png) [AnimateSharedLayout](https://www.framer.com/api/motion/animate-shared-layout/)์„ ์“ธ๋•Œ ์œ„ ์ฒ˜๋Ÿผ animation์ด ๊ฑธ๋ฆฐ ์ปจํ…์ธ ์˜ width๊ฐ€ ํ”๋“ค๋ฆฐ๋‹ค๋ฉด `layout="position"`์œผ๋กœ position ๋ณ€ํ™”์—๋งŒ ์• ๋‹ˆ๋ฉ”์ด์…˜์ด ์ ์šฉ๋˜๋„๋ก ํ•˜์ž.

```diff module.exports = { presets: [ [ 'next/babel', { 'preset-react': { runtime: 'automatic', - importSource: '@emotion/react', }, }, ], ], - plugins: ['@emotion/babel-plugin', 'babel-plugin-macros'], } ``` ๋‘ ์„ค์ •์ด ์žˆ์œผ๋ฉด [stitches์˜...

postcss 8์ด ๋ฆด๋ฆฌ์ฆˆ๋˜๋ฉด์„œ ๋””ํŽœ๋˜์‹œ๊ฐ€ ์—ฌ๊ธฐ์ €๊ธฐ ์ข…์ข…..๊นจ์ง.. ํŠนํžˆ ์›นํŒฉ4 ๋ชจ๋“œ๋กœ ๋Œ๋ฆฌ๋ฉด ์ตœ์‹  ๋””ํŽœ๋˜์‹œ์™€ ๊ฑฐ์ง„ ํ˜ธํ™˜์ด ์•ˆ๋˜๋Š”๋ฐ.. - `@storybook/addon-postcss`๋กœ postcss๋ฒ„์ „์„ ํŒจํ‚ค์ง€ ๋ฒ„์ „์œผ๋กœ ์จ์ฃผ๊ณ  - storybook/scss๋ฅผ ์‚ฌ์šฉํ•ด์ฃผ๊ณ  - (if yarn2) ์˜์กด์„ฑ์„ ์ข€ ๋ช…์‹œํ•ด์ฃผ๋ฉด...

// ๋‚ด์šฉ ๋ณด์ถฉ ์ค‘ 6๊ฐœ์˜ form(Controller + ๋‹จ์ˆœ input)์œผ๋กœ ์ด๋ค„์ง„ field group์„ fieldArray๋กœ ๋‹ค๋ฃฐ ๋•Œ ๋‹ค์Œ๊ณผ ๊ฐ™์€ ํผํฌ๋จผ์Šค ์ €ํ•˜๊ฐ€ ๋ฐœ์ƒํ–ˆ๋‹ค. ![image](https://user-images.githubusercontent.com/78015010/112751630-f4236d80-9009-11eb-8c89-abedeaab06f2.png) ## Problem `register({ required: isRequired && '์—๋Ÿฌ๋ฉ”์„ธ์ง€' })` ์ฝ”๋“œ๋กœ...

# cache clear์•ˆ๋ ๋•Œ ```tsx import React, { ReactNode } from 'react'; import { SWRConfig } from 'swr'; /** * @description https://github.com/vercel/swr/pull/231#issuecomment-591614747 */ const SWRNoCache = ({ children }: { children:...

jest์—์„œ esm์„ ์ง€์›ํ•˜์ง€ ์•Š์•„์„œ ์ƒ๊ธฐ๋Š” ์ด์Šˆ (์ง€์› ํ•˜๋ ค๊ณ  ์‹คํ—˜์ค‘) test env์—์„œ modules: auto์ฃผ๋ฉด esm์œผ๋กœ ๋ณ€ํ™˜์•ˆ๋˜์–ด์„œ jest์‹คํ–‰์ด ๊ฐ€๋Šฅํ•˜๋‹ค. ```js module.exports = { plugins: [ ], presets: [ ['@babel/preset-env', { 'modules': false...

## [wip] isSuccess ๊ถ๊ธˆํ•œ ์ : https://react-query.tanstack.com/docs/api ์ƒ์— `onSuccess`์ฝœ๋ฐฑ๋„ ์žˆ๊ณ , `isSuccess`๋„์žˆ๋Š”๋ฐ ๋‘ ๊ฐ’์˜ ์ฐจ์ด๋‚˜ ํƒ€์ด๋ฐ์€? ๋‹จ์ˆœํžˆ DX? [์ด ๋ถ€๋ถ„์˜ ์ฝ”๋“œ](https://github.com/tannerlinsley/react-query/blob/00b9e968a80ca7c51fd50479aee852bb41bf9bc6/src/react/useMutation.ts#L151-L156)๋ฅผ ๋ณด๋‹ˆ ํƒ€์ด๋ฐ์ƒ `onSuccess`์ฝœ๋ฐฑ์ด ๋จผ์ € ๋ถˆ๋ฆด๊ฒƒ ๊ฐ™๋‹ค. ์ดํ›„์— `isSuccess`๊ฐ’์ด true๊ฐ€ ๋˜์ง€ ์•Š์„๊นŒ....

## Desc react-transiton group์œผ๋กœ BottomSheet๋“ฑ์„ ๋งŒ๋“ค ๋•Œ Lottie๋ฆฌ์†Œ์Šค๊ฐ€ ์•„์˜ˆ ์‚ฌ๋ผ์กŒ๋‹ค๊ฐ€ ๋‹ค์‹œ ์ƒ๊ธฐ๋Š” ๋“ฑ์˜ ์ด์Šˆ๊ฐ€ ์žˆ์„ ์ˆ˜ ์žˆ๋‹ค. lottie์˜์—ญ์— ๊ณ ์ • height๋ฅผ ์ค„๊ฒฝ์šฐ ๋ฆฌ์†Œ์Šค๊ฐ€ ์•„์˜ˆ ์‚ฌ๋ผ์ง€์ง€๋Š” ์•Š์ง€๋งŒ, ์• ๋‹ˆ๋ฉ”์ด์…˜์ด ์œ ์ง€๋œ ์ฑ„๋กœ bottom sheet๊ฐ€...