Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sadnessOjisan committed Apr 28, 2024
1 parent 2278b32 commit 1f4848d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/contents/20240428-styled-components-to-v6/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,11 @@ function shouldForwardProp(propName, target) {
```

`shouldForwardProp` を埋め込んだ `StyleSheetManager` でアプリ全体を囲えばOKというわけだ。

ただやはり正攻法としてはtransient-propsを使っていきたいですな。

ちなみにこれの面白いところは、emotionのパッケージを読み込んでいるところだ。
そしてこのコードは styled-components の公式のコードである。

### props で呼び出す型引数の明示

これまでは
Expand Down

0 comments on commit 1f4848d

Please sign in to comment.