2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

React勉強メモ

2
Posted at

普段cakephpでwebアプリを作っている私がreactを勉強するにあたり、覚えた内容などを備忘録としてここに残します。

Reactの画面描写の仕組み

  • cakephpでは、サーバー側でhtmlやjsファイルを用意し、ブラウザに返す。
    ⇒画面内のボタンをクリックした際、jsファイルの記述でクリックイベントを検知し、動作をする

  • reactでも原則は同じで、サーバー側ではほぼ真っ白のhtmlと巨大なjsファイルをブラウザに返している。
    ⇒巨大なjsファイル内に、htmlとして描写したい内容やjsとしての動きなどを記載している

ちょっとした画面の動きであれば前者で十分だが、くねくね画面を動かしたり、状態管理など複雑なことをやろうとすると、reactのほうが都合がよさそう

2
1
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
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?