Open6
学習

clientcomponentの中にserverComponentを入れるには以下のようにする
'use client'
export default function ClientComponets({children}:React.ReactNode){
return(
<div>
{children}
</div>
)
}
export default function Page(){
return(
<ClientComponent>
<ServerComponent
</ClientComponent>
)
}

- リアルタイム(リアルタイムな動き)で表示させたりするときは、client側でかく

GitHubにpushできなかった
問題
git pushコマンドをしても、failed to push some refs toエラーが出る
解決方法
コマンドを打つファイルの階層が違った。
C:\Users\torio\Desktop\Next.js\git-practice>から一つ下の
C:\Users\torio\Desktop\Next.js\git-practice\git-practice>に移動した

履行:実際に行うこと
Promiseの3つの状態
pending,fulfilled,rejected
fulfilled:待ち受けている非同期処理が完了して、例外が発生しなかったことを示す。

prettier:コードを整形する。セミコロンを付けるのか付けないのか。インデントの幅など。
ESLint:コーディング規約を自動化。
コンパイラオプションnoUnusedLocalsを有効にすると、未使用の変数をチェックできる。

webAPI:twitterAPIとか、weatherAPIなど
RESTAPI: