Skip to content

Translated post react v15 rc2 #344

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 14 commits into from
Nov 12, 2019
34 changes: 17 additions & 17 deletions content/blog/2016-03-16-react-v15-rc2.md
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
---
title: "React v15.0 Release Candidate 2"
title: "React v15.0 Candidato à Lançamento 2"
author: [zpao]
---

Today we're releasing a second release candidate for version 15. Primarily this is to address 2 issues, but we also picked up a few small changes from new contributors, including some improvements to some of our new warnings.
Hoje, estamos lançando um segundo candidato à lançamento para a versão 15. Essencialmente é para resolver 2 problemas, mas também recebemos algumas pequenas alterações de novos colaboradores, incluindo algumas melhorias em alguns de nossos novos avisos.

The most pressing change that was made is to fix a bug in our new code that removes `<span>`s, as discussed in the original RC1 post. Specifically we have some code that takes a different path in IE11 and Edge due to the speed of some DOM operations. There was a bug in this code which didn't break out of the optimization for `DocumentFragment`s, resulting in text not appearing at all. Thanks to the several people who [reported this](https://github.com/facebook/react/issues/6246).
A mudança mais urgente que foi feita é corrigir um erro em nosso novo código que remove os `<span>`s, conforme discutido na publicação original do RC1. Especificamente, temos algum código que segue um caminho diferente no IE11 e no Edge devido à velocidade de algumas operações do DOM. Houve um erro neste código que não interrompeu a otimização para os `DocumentFragment`s, resultando no texto não aparecendo. Obrigado às várias pessoas que [relataram isso](https://github.com/facebook/react/issues/6246).

The other change is to our SVG code. In RC1 we had made the decision to pass through all attributes directly. This led to [some confusion with `class` vs `className`](https://github.com/facebook/react/issues/6211) and ultimately led us to reconsider our position on the approach. Passing through all attributes meant that we would have two different patterns for using React where things like hyphenated attributes would work for SVG but not HTML. In the future, we *might* change our approach to the problem for HTML as well but in the meantime, maintaining consistency is important. So we reverted the changes that allowed the attributes to be passed through and instead expanded the SVG property list to include all attributes that are in the spec. We believe we have everything now but definitely [let us know](https://github.com/facebook/react/issues/1657#issuecomment-197031403) if we missed anything. It was and still is our intent to support the full range of SVG tags and attributes in this release.
A outra alteração é no nosso código SVG. No RC1, tomamos a decisão de passar todos os atributos diretamente. Isso levou a [alguma confusão com `class` vs `className`](https://github.com/facebook/react/issues/6211) e finalmente nos levou a reconsiderar nossa posição sobre a abordagem. Passar todos os atributos significava que teríamos dois padrões diferentes para usar o React, onde coisas como atributos hifenizados funcionariam para SVG, mas não para HTML. No futuro, *poderemos* alterar nossa abordagem para o problema do HTML também, mas, enquanto isso é importante manter a consistência. Portanto, revertemos as alterações que passavam os atributos e expandimos a lista de propriedades SVG para incluir todos os atributos que estão na especificação. Acreditamos que temos tudo agora, mas definitivamente [nos avise](https://github.com/facebook/react/issues/1657#issuecomment-197031403) se deixamos passar alguma coisa. Foi, e ainda é, nossa intenção oferecer suporte a toda a gama de tags e atributos SVG nesta versão.

Thanks again to everybody who has tried the RC1 and reported issues. It has been extremely important and we wouldn't be able to do this without your help!
Agradecemos novamente a todos que experimentaram o RC1 e relataram problemas. Foi extremamente importante e não poderíamos fazer isso sem a sua ajuda!

## Installation {#installation}
## Instalação {#installation}

We recommend using React from `npm` and using a tool like browserify or webpack to build your code into a single bundle. To install the two packages:
Recomendamos usar o React do `npm` e usar uma ferramenta como o browserify ou o webpack para criar seu código em um único pacote. Para instalar os dois pacotes:

* `npm install --save [email protected] [email protected]`

Remember that by default, React runs extra checks and provides helpful warnings in development mode. When deploying your app, set the `NODE_ENV` environment variable to `production` to use the production build of React which does not include the development warnings and runs significantly faster.
Lembre-se de que por padrão, o React executa verificações extras e fornece avisos úteis no modo de desenvolvimento. Ao implantar seu aplicativo, defina a variável de ambiente `NODE_ENV` como `production`para usar o build de produção do React, que não inclui os avisos de desenvolvimento e executa significativamente mais rápido.

If you can’t use `npm` yet, we provide pre-built browser builds for your convenience, which are also available in the `react` package on bower.
Se você ainda não pode usar o `npm`, fornecemos versões pré-construídas para navegador para sua conveniência, que também estão disponíveis no pacode do `react` do bower.

* **React**
Dev build with warnings: <https://fb.me/react-15.0.0-rc.2.js>
Minified build for production: <https://fb.me/react-15.0.0-rc.2.min.js>
* **React with Add-Ons**
Dev build with warnings: <https://fb.me/react-with-addons-15.0.0-rc.2.js>
Minified build for production: <https://fb.me/react-with-addons-15.0.0-rc.2.min.js>
* **React DOM** (include React in the page before React DOM)
Dev build with warnings: <https://fb.me/react-dom-15.0.0-rc.2.js>
Minified build for production: <https://fb.me/react-dom-15.0.0-rc.2.min.js>
Versão para desenvolvimento com avisos: <https://fb.me/react-15.0.0-rc.2.js>
Versão minificada para produção: <https://fb.me/react-15.0.0-rc.2.min.js>
* **React com Add-Ons**
Versão para desenvolvimento com avisos: <https://fb.me/react-with-addons-15.0.0-rc.2.js>
Versão minificada para produção: <https://fb.me/react-with-addons-15.0.0-rc.2.min.js>
* **React DOM** (inclua React na página antes do React DOM)
Versão para desenvolvimento com avisos: <https://fb.me/react-dom-15.0.0-rc.2.js>
Versão minificada para produção: <https://fb.me/react-dom-15.0.0-rc.2.min.js>