9
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 1 year has passed since last update.

プロパティ"........."は型'JSX.IntrinsicElements'に存在しません。

Posted at

悩み事

import styled from "styled-components";

const Title = () => {
  <titlefont>Hacker News</titlefont>;
};

const titlefont = styled.div`
  color: black;
  font-size: 20px;
  font-weigh: normal;
`;

export default Title;

この状態でエラーが発生してしまいました。
内容としては プロパティ"........."は型'JSX.IntrinsicElements'に存在しません。 です

何が原因であったか

結果として、コンポーネントを大文字から始めないといけないようです。

参考先

他にもこのようなエラーに注意した方がいい、などあればコメントお願いします。

9
0
1

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
9
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?