# 📝 基本文法ガイド GitHub Power Scouterで使用されているReact + TypeScriptの基本文法を、初心者にも分かりやすく実際のコードサンプルと共に解説します。 ## 🎯 React基本概念 ### 🧩 コンポーネントとは ```typescript // 関数コンポーネント(推奨) const UserInput: React.FC = () => { return (
Scanning in progress...
) : (Scan complete!
)} {/* 配列のレンダリング */} {['JavaScript', 'TypeScript', 'React'].map(skill => ( {skill} ))} {/* イベントハンドラー */}Followers: {user.followers}
Loading...
) : (User: {userData.name}
}Followers: {user.followers}
Following: {user.following}
( Component: React.ComponentType
) => { return (props: P & { isLoading: boolean }) => { const { isLoading, ...rest } = props; if (isLoading) { return
Repos: {state.repos.length}