4
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

React + Material-UI Memo

Posted at
環境:
- React
- Material-UI
- JavaScript

DOM

JavaScriptの仕様
HTMLをJavaScriptでも使えるようにする
-> 1つのオブジェクトにする

null判定

nullの場合、false判定

オブジェクト(JavaScriptのタグ)を書きたい!

=> {{}}
-> {}: JavaScript書きますよ
-> {}: オブジェクト書きますよ

Material-UI: PropertiesのType

node ≒ element
-> {}が使える(コンポーネントをそのまま渡せる)

おまけ: HTML

ブロック要素:自動改行
->とりあえずこれ使っとけ <div>

インライン要素:改行されない
-> とりあえずこれ使っとけ <span>

4
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?