🖥

Why #JSX (from #react Docs) (Google Translated)

2019/04/24に公開

React

It includes the fact that rendering logic is intrinsically tied to other UI logic: how to handle events, aging of states, and how to prepare to display data.

By putting markup and logic in separate files

Rather than artificially separating technology, React separates concerns in loosely coupled units called "components" that contain both. We will come back to the components in a further section, but if you are not yet familiar with putting markup in JS, this story may convince you otherwise.

React does not need to use JSX, but

Most people find it useful as a visual aid when manipulating UI in JavaScript code. It also allows React to display more useful error and warning messages.

Don't get in the way, let's get started.

Ref

Introducing JSX-React

Original by Github issue

https://github.com/YumaInaura/YumaInaura/issues/1397

チャットメンバー募集

何か質問、悩み事、相談などあればLINEオープンチャットもご利用ください。

https://line.me/ti/g2/eEPltQ6Tzh3pYAZV8JXKZqc7PJ6L0rpm573dcQ

Twitter

https://twitter.com/YumaInaura

公開日時

2019-04-24

Discussion