サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
アメリカ大統領選
david-gilbertson.medium.com
React 16 is here, and one of the more interesting additions is ‘Portals’. Portals let you render a bit of React-controlled DOM outside of the parent component. The React docs explain it nicely, using the example of a modal. It works well for tooltips, too (here’s one I made earlier). But none of that is very interesting. Let’s do something weird… Since all a portal does is take an element and appe
For the developer in a hurry, I’ll start with the gist of what I will be building in this post: a self-contained Icon component that renders one of several icons. ‘Gist’. Geddit?The key takeaway is defining icons as SVG paths. If you can spot the five or six things wrong with this component, keep reading. If you can’t spot the five or six things wrong with this component, keep reading. Onwards! Wh
このページを最初にブックマークしてみませんか?
『david-gilbertson.medium.com』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く