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

Reactで覚えておきたいもの

Last updated at Posted at 2022-02-23

環境まわり系

yarnで実行

  • yarn start サーバを起動する

npmで実行

  • PORT=3001 npm start ポートを指定しながら実行できる

propsについて

渡し方は文字列、数字、配列、真偽値、コンポーネント、childrenがある
以下が例となる
page="about" number={1111} array={[1,2,3]} obj={{foo:"foo",bar:"bar"}} boolean={true} code={pages/about.js}

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?