Skip to content

Добавлен перевод статьи блога "Update 2013-07-26-react-v0-4-1.md" #566

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 2, 2020
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions content/blog/2013-07-26-react-v0-4-1.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,22 @@ title: "React v0.4.1"
author: [zpao]
---

React v0.4.1 is a small update, mostly containing correctness fixes. Some code has been restructured internally but those changes do not impact any of our public APIs.
React v0.4.1 — небольшое обновление, в основном содержит исправления. Часть кода была реструктурирована внутри, но эти изменения не влияют ни на один из публичных API.


## React {#react}

* `setState` callbacks are now executed in the scope of your component.
* `click` events now work on Mobile Safari.
* Prevent a potential error in event handling if `Object.prototype` is extended.
* Don't set DOM attributes to the string `"undefined"` on update when previously defined.
* Improved support for `<iframe>` attributes.
* Added checksums to detect and correct cases where server-side rendering markup mismatches what React expects client-side.
* Колбэки `setState` теперь выполняются в рамках вашего компонента.
* Событие `click` теперь работает на мобильном Safari.
* Предотвращена потенциальная ошибка при обработке событий, если `Object.prototype` расширялся.
* Не устанавливать строковое значение `"undefined"` DOM-атрибутам при обновлении, если атрибуты были определены ранее.
* Улучшена поддержка атрибутов `<iframe>`.
* Добавлены контрольные суммы для обнаружения и исправления случаев, когда разметка, полученная от серверного рендеринга, не соответствует ожиданиям React на стороне клиента.


## JSXTransformer {#jsxtransformer}

* Improved environment detection so it can be run in a non-browser environment.
* Улучшено обнаружение окружения для запуска в среде вне браузера.


[Download it now!](/downloads.html)
[Скачайте сейчас!](/downloads.html)