Skip to content

Commit fc15036

Browse files
committed
nomes de componentes/atributos/props em inglês
1 parent 423afb2 commit fc15036

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

beta/src/pages/reference/render.md

+16-16
Original file line numberDiff line numberDiff line change
@@ -67,31 +67,31 @@ Se você usar ["pedaços"](/learn/add-react-to-a-website) do React aqui e ali, c
6767
<Sandpack>
6868

6969
```html public/index.html
70-
<nav id="navegacao"></nav>
70+
<nav id="navigation"></nav>
7171
<main>
7272
<p>Este parágrafo não é renderizado pelo React (abra index.html para verificar).</p>
73-
<section id="comentarios"></section>
73+
<section id="comments"></section>
7474
</main>
7575
```
7676

7777
```js index.js active
7878
import './styles.css';
7979
import { render } from 'react-dom';
80-
import { Comentarios, Navegacao } from './Components.js';
80+
import { Comments, Navigation } from './Components.js';
8181

8282
render(
83-
<Navegacao />,
84-
document.getElementById('navegacao')
83+
<Navigation />,
84+
document.getElementById('navigation')
8585
);
8686

8787
render(
88-
<Comentarios />,
89-
document.getElementById('comentarios')
88+
<Comments />,
89+
document.getElementById('comments')
9090
);
9191
```
9292

9393
```js Components.js
94-
export function Navegacao() {
94+
export function Navigation() {
9595
return (
9696
<ul>
9797
<NavLink href="/">Home</NavLink>
@@ -108,19 +108,19 @@ function NavLink({ href, children }) {
108108
);
109109
}
110110

111-
export function Comentarios() {
111+
export function Comments() {
112112
return (
113113
<>
114114
<h2>Comentarios</h2>
115-
<Comentario texto="Olá!" autor="Sophie" />
116-
<Comentario texto="Como vai você?" autor="Sunil" />
115+
<Comment text="Olá!" author="Sophie" />
116+
<Comment text="Como vai você?" author="Sunil" />
117117
</>
118118
);
119119
}
120120

121-
function Comentario({ texto, autor }) {
121+
function Comentario({ text, author }) {
122122
return (
123-
<p>{texto} — <i>{autor}</i></p>
123+
<p>{text} — <i>{author}</i></p>
124124
);
125125
}
126126
```
@@ -147,18 +147,18 @@ import App from './App.js';
147147
let i = 0;
148148
setInterval(() => {
149149
render(
150-
<App contador={i} />,
150+
<App counter={i} />,
151151
document.getElementById('root')
152152
);
153153
i++;
154154
}, 1000);
155155
```
156156

157157
```js App.js
158-
export default function App({contador}) {
158+
export default function App({counter}) {
159159
return (
160160
<>
161-
<h1>Olá, mundo! {contador}</h1>
161+
<h1>Olá, mundo! {counter}</h1>
162162
<input placeholder="Digite algo aqui!" />
163163
</>
164164
);

0 commit comments

Comments
 (0)