shorthand property

rlaclgns321ยท2022๋…„ 7์›” 5์ผ
0

React

๋ชฉ๋ก ๋ณด๊ธฐ
12/58

๐Ÿ’ก shorthand property ์ ์šฉ ์ „

const result = await createUseditem({
        variables: {
          createUseditemInput: {
            name: myName
            remarks: myRemarks
            contents: myContents
          },
        },
	},
});

๐Ÿ’ก shorthand property ์ ์šฉ ํ›„
shorthand property๋Š” ๊ฐ์ฒด๋ฅผ ์ •์˜ํ•  ๋•Œ ๊ฐ์ฒด์˜ key๊ฐ’๊ณผ value ๊ฐ’์ด ๊ฐ™์œผ๋ฉด, ๊ฐ๊ฐ ํ‘œ๊ธฐํ•˜์ง€ ์•Š๊ณ  ํ•œ ๋ฒˆ๋งŒ ํ‘œ๊ธฐํ•˜๋Š” ๊ฒƒ์„ ์˜๋ฏธํ•ฉ๋‹ˆ๋‹ค

const result = await createUseditem({
        variables: {
          createUseditemInput: {
            name
            remarks
            contents
          },
        },
	},
});
profile
FrontEnd Developer

0๊ฐœ์˜ ๋Œ“๊ธ€