Dokiman sa a dekri règ ki ta dwe aplike pou ** tout ** tradiksyon pou sit ht.reactjs.org.
Tout tit gen idantifikasyon klè tankou egzanp anba a:
## Eseye React {#try-react}
** Pa ** tradui ID sa yo! Nou itilize yo pou navigasyon. Lyen yo ka pa mache si dokiman an se yon lyen ekstèn tankou:
Checke seksyon [An n Kòmanse](/getting-started#try-react) pou plis enfòmasyon.
✅ Fè:
## Eseye React {#try-react}
❌ Pa Fè:
## Eseye React {#eseye-react}
Egzanp sa ta gate lyen pou seksyon Eseye React la.
Kenbe tèks nan blòk kòd san tradiksyon eksepte pou kòmantè. Ou ka chwazi tradui tèks nan strings (chèn karaktè), men ou dwe fè atansyon pou pa tradui strings (chèn karaktè) ki refere a kòd la!
Egzanp:
// Example
const element = <h1>Hello, world</h1>;
ReactDOM.render(element, document.getElementById('root'));
✅ Fè:
// Egzanp
const element = <h1>Hello, world</h1>;
ReactDOM.render(element, document.getElementById('root'));
✅ Pèmen:
// Egzanp
const element = <h1>Bonjou, mond</h1>;
ReactDOM.render(element, document.getElementById('root'));
❌ Pa Fè:
// Egzanp
const element = <h1>Bonjou, mond</h1>;
// "root" refere a yon eleman ki gen ID "root".
// Pa Tradui
ReactDOM.render(element, document.getElementById('root'));
❌ Pa Fè Sa Menm:
// Egzanp
const eleman = <h1>Bonjou, mond</h1>;
ReactDOM.dokiman(eleman, documento.pranElemanPaId('rasin'));
Pou lyen ki pa gen okenn tradisyon (StackOverflow, videyo sou YouTube, elatriye), sevi ak lyen orijinal la.
Pawòl ak tèm sijesyon:
Pawòl/Tèm orijinal | Sijesyon |
---|---|
assertion | |
browser | |
bubbling | |
bug | |
class component | |
class | |
client | |
client-side | |
container | |
context | |
controlled component | |
debugging | |
DOM node | |
event handler | (event handler) |
function component | |
handler | |
helper function | |
high-order components | |
key | |
library | |
lowercase | |
package | |
React element | |
React fragment | |
render | |
server | |
server-side | |
siblings | |
stateful component | |
stateful logic | |
to assert | |
to wrap | |
uncontrolled component | |
uppercase |
- array
- arrow function
- bind
- bundle
- bundler
- callback
- camelCase
- DOM
- event listener
- framework
- hook
- log
- mock
- portal
- props
- ref
- release
- script
- single-page-apps
- state
- string
- string literal
- subscribe
- subscription
- template literal
- timestamps
- UI
- watcher
- widgets
- wrapper