29 Ocak 2019 Salı

React JSX

Tarihçesi
React'ın tarihçesi şöyle.
React.js is an open source JavaScript library created by Facebook in 2011 for building dynamic user interfaces. React is based on JavaScript and JSX, a PHP extension developed by Facebook, that allows for the creation of reusable HTML elements for front-end development. React has React Native, a separate cross-platform framework for mobile development.
JSX Nedir
Açıklaması şöyle.
React uses JavaScript ES6+ and JSX script. JSX is a syntax extension for JavaScript used to simplify UI coding, making JavaScript code look like HTML. The use of JSX visually simplifies code which allows for detecting errors and protecting code from injections. JSX is also used for browser compilation via Babel, a compiler that translates the code into the format that a web browser can read. JSX syntax performs almost the same functions as TypeScript, but some developers find it too complicated to learn.
Babel
JSX'i Javascript'e çevirmek için Babel kullanılır. Açıklaması şöyle.
Babel is a transcompiler that converts JSX into JavaScript for the application to be understood by browsers.

Hiç yorum yok:

Yorum Gönder