You must use Storybook with webpack5!
npx sb@next init --builder webpack5
Remember to install all nedded packages because debugging babel
deps might be tricky.
Enjoy!
You must use Storybook with webpack5!
npx sb@next init --builder webpack5
Remember to install all nedded packages because debugging babel
deps might be tricky.
Enjoy!
const inBrowser = typeof window !== 'undefined' | |
const inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform | |
const weexPlatform = inWeex && WXEnvironment.platform.toLowerCase() | |
const UA = inBrowser && window.navigator.userAgent.toLowerCase() | |
const isIE = UA && /msie|trident/.test(UA) | |
const isIE9 = UA && UA.indexOf('msie 9.0') > 0 | |
const isEdge = UA && UA.indexOf('edge/') > 0 | |
const isAndroid = (UA && UA.indexOf('android') > 0) || (weexPlatform === 'android') | |
const isIOS = (UA && /iphone|ipad|ipod|ios/.test(UA)) || (weexPlatform === 'ios') | |
const isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge |
์ง๋ JavaScript, Front-End ๋ฐํ ์ฃผ์ ๋ this ์์ง๋ง, ๊ณต๋ถํ๋ค ๋ณด๋ ์คํ ์ปจํ ์คํธ์ ๋ํ ๋ด์ฉ์ด ์ ํ๋์ผ ํ ๊ฒ ๊ฐ์ ์คํ ์ปจํ ์คํธ์ ๋ํ์ฌ ๋ฐํ๋ฅผ ํ๊ฒ ๋์๋ค.
์ฌ๋ฌ ์๋ฃ์ ์ฑ ์ ์ฐธ๊ณ ํ๋ฉฐ ๊ณต๋ถ๋ฅผ ํ๊ณ ์์์๋ ๋ด์ฉ์ด ์ ์๋ฟ์ง ์์ ์ฐธ๊ณ 1์ ์ฐธ๊ณ 2, ์ฐธ๊ณ 3, ์ฐธ๊ณ 4, ์ฑ ์ธ์ฌ์ด๋ ์๋ฐ์คํฌ๋ฆฝํธ, Poiema Web์ ์ฐธ๊ณ ํ์ฌ ๋ฒ์ญ์ ํด๋ณด๊ณ ์ ํ๋ค. ์ถ๊ฐ์ ์ผ๋ก ๋ด๊ฐ ์ฌ๋ฌ ์๋ฃ๋ฅผ ์ฐพ์๋ณด๋ฉด์ ์๊ฒ ๋ ๋ด์ฉ๋ค๋ ๋ง๋ถ์ผ ๊ฒ์ด๋ค.
์คํ ์ปจํ ์คํธ, Execution Context(์ดํ EC) ๋ผ๋ ๊ฐ๋ ์ ๋์๊ฒ ๋ฏ์ค์๊ธฐ์ ๋์ ๊ฐ์ ์ฌ๋๋ค์ด ์์ ๊ฒ ๊ฐ์ ํํ๋ค ์๋ ์ฝ์คํ ์ ์์์ผ๋ก ๊ธ์ ์จ๋ณด๋๋ก ํ๊ฒ ๋ค.
AWS ํ์ต ๋งํฌ์ง ์๋ฆฌ์ฆ
.slide-up, .slide-down { | |
overflow:hidden; | |
} | |
.slide-up > div, .slide-down > div { | |
transform: translateY(-100%); | |
transition: .4s ease-in-out; | |
} | |
.slide-down > div { | |
transform: translateY(0); | |
} |
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.
elem.offsetLeft
, elem.offsetTop
, elem.offsetWidth
, elem.offsetHeight
, elem.offsetParent
EMOJI CHEAT SHEET
Emoji emoticons listed on this page are supported on Campfire, GitHub, Basecamp, Redbooth, Trac, Flowdock, Sprint.ly, Kandan, Textbox.io, Kippt, Redmine, JabbR, Trello, Hall, plug.dj, Qiita, Zendesk, Ruby China, Grove, Idobata, NodeBB Forums, Slack, Streamup, OrganisedMinds, Hackpad, Cryptbin, Kato, Reportedly, Cheerful Ghost, IRCCloud, Dashcube, MyVideoGameList, Subrosa, Sococo, Quip, And Bang, Bonusly, Discourse, Ello, and Twemoji Awesome. However some of the emoji codes are not super easy to remember, so here is a little cheat sheet. โ Got flash enabled? Click the emoji code and it will be copied to your clipboard.
People
๐