1
0

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 3 years have passed since last update.

material ui の modal で Cannot read property 'hasOwnProperty' of undefined エラーが起きたときの解決法

Posted at

概要

material ui の modal コンポーネントを使用したときに Cannot read property 'hasOwnProperty' of undefined というエラーが起きてしまいました。そのときの対処法を共有します。

解決法

<Modal> の中に div タグを書くようにしてください。

return (
<Modal>
  <div>
    test
  </div>
</Modal>
)

参考:
https://stackoverflow.com/questions/56622246/react-material-ui-modal-typeerror-cannot-read-property-hasownproperty-of-unde

1
0
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?