<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kito0039</author_name>
  <author_url>https://blog.hatena.ne.jp/kito0039/</author_url>
  <blog_title>Web Developer's Struggle Memories</blog_title>
  <blog_url>https://kito0039.hatenablog.com/</blog_url>
  <categories>
    <anon>React.js</anon>
    <anon>useState</anon>
    <anon>プログラミング</anon>
    <anon>備忘録</anon>
  </categories>
  <description>とある案件で Next.js を用いて web アプリケーションを開発しているのですが、その中で styled-components というライブラリを利用してコンポーネントを作成しています。 まぁコード見たら物凄い基本的なことですが、備忘録として書き残しておきます。 とりあえずデモ 今回は styled-components を用いて入力欄(input 要素)を作成しており、CodeSandbox の リンク も貼っておきます。 実際のコード まず styled-components を使って作った入力用のコンポーネントのソースコードを紹介します。 import React from &quot;re…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkito0039.hatenablog.com%2Fentry%2F2020%2F03%2F08%2F232443&quot; title=&quot;useState を使った input で初期値をセットしたりバリデーションチェックする方法 - Web Developer&amp;#39;s Struggle Memories&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-03-08 23:24:43</published>
  <title>useState を使った input で初期値をセットしたりバリデーションチェックする方法</title>
  <type>rich</type>
  <url>https://kito0039.hatenablog.com/entry/2020/03/08/232443</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
