|
1 | 1 | ---
|
2 |
| -title: React Reference Overview |
| 2 | +title: Pregled React referenci |
3 | 3 | ---
|
4 | 4 |
|
5 | 5 | <Intro>
|
6 | 6 |
|
7 |
| -This section provides detailed reference documentation for working with React. For an introduction to React, please visit the [Learn](/learn) section. |
| 7 | +Ova sekcija vam pruža detaljnu dokumentaciju referenci za rad sa React-om. Za uvod u sam React, molimo vas posetite sekciju [Nauči](/learn). |
8 | 8 |
|
9 | 9 | </Intro>
|
10 | 10 |
|
11 |
| -The React reference documentation is broken down into functional subsections: |
| 11 | +Dokumentacija React referenci je podeljena na par funkcionalnih podsekcija: |
12 | 12 |
|
13 | 13 | ## React {/*react*/}
|
14 | 14 |
|
15 |
| -Programmatic React features: |
| 15 | +Programske React funkcionalnosti: |
16 | 16 |
|
17 |
| -* [Hooks](/reference/react/hooks) - Use different React features from your components. |
18 |
| -* [Components](/reference/react/components) - Built-in components that you can use in your JSX. |
19 |
| -* [APIs](/reference/react/apis) - APIs that are useful for defining components. |
20 |
| -* [Directives](/reference/rsc/directives) - Provide instructions to bundlers compatible with React Server Components. |
| 17 | +* [Hook-ovi](/reference/react/hooks) - Upotreba različitih React funkcionalnosti u vašim komponentama. |
| 18 | +* [Komponente](/reference/react/components) - Ugrađene komponente koje možete koristiti u vašem JSX-u. |
| 19 | +* [API-ji](/reference/react/apis) - API-ji koji su korisni za definisanje komponenti. |
| 20 | +* [Direktive](/reference/rsc/directives) - Pružanje instrukcija bundler-ima kompatibilnim sa React Server Components. |
21 | 21 |
|
22 | 22 | ## React DOM {/*react-dom*/}
|
23 | 23 |
|
24 |
| -React-dom contains features that are only supported for web applications (which run in the browser DOM environment). This section is broken into the following: |
| 24 | +React-dom sadrži funkcionalnosti koje su podržane samo za web aplikacije (koje su pokrenute u DOM okruženju pretraživača). Ova sekcija se deli na sledeće celine: |
25 | 25 |
|
26 |
| -* [Hooks](/reference/react-dom/hooks) - Hooks for web applications which run in the browser DOM environment. |
27 |
| -* [Components](/reference/react-dom/components) - React supports all of the browser built-in HTML and SVG components. |
28 |
| -* [APIs](/reference/react-dom) - The `react-dom` package contains methods supported only in web applications. |
29 |
| -* [Client APIs](/reference/react-dom/client) - The `react-dom/client` APIs let you render React components on the client (in the browser). |
30 |
| -* [Server APIs](/reference/react-dom/server) - The `react-dom/server` APIs let you render React components to HTML on the server. |
| 26 | +* [Hook-ovi](/reference/react-dom/hooks) - Hook-ovi za web aplikacije koje su pokrenute u DOM okruženju pretraživača. |
| 27 | +* [Komponente](/reference/react-dom/components) - React sadrži sve HTML i SVG komponente ugrađene u pretraživač. |
| 28 | +* [API-ji](/reference/react-dom) - `react-dom` paket sadrži metode podržane samo u web aplikacijama. |
| 29 | +* [Klijentski API-ji](/reference/react-dom/client) - `react-dom/client` API-ji omogućavaju renderovanje React komponenata na klijentu (u pretraživaču). |
| 30 | +* [Serverski API-ji](/reference/react-dom/server) - `react-dom/server` API-ji omogućavaju renderovanje React komponenata u HTML na serveru. |
31 | 31 |
|
32 |
| -## React Compiler {/*react-compiler*/} |
| 32 | +## React kompajler {/*react-compiler*/} |
33 | 33 |
|
34 |
| -The React Compiler is a build-time optimization tool that automatically memoizes your React components and values: |
| 34 | +React kompajler je alat za optimizaciju vremena izgradnje koji automatski memoriše vaše React komponente i vrednosti: |
35 | 35 |
|
36 |
| -* [Configuration](/reference/react-compiler/configuration) - Configuration options for React Compiler. |
37 |
| -* [Directives](/reference/react-compiler/directives) - Function-level directives to control compilation. |
38 |
| -* [Compiling Libraries](/reference/react-compiler/compiling-libraries) - Guide for shipping pre-compiled library code. |
| 36 | +* [Konfiguracija](/reference/react-compiler/configuration) - Opcije za konfiguraciju React kompajlera. |
| 37 | +* [Direktive](/reference/react-compiler/directives) - Direktive na nivou funkcija za kontrolu kompilacije. |
| 38 | +* [Kompajliranje biblioteka](/reference/react-compiler/compiling-libraries) - Uputstvo za isporuku prekompajliranog koda biblioteke. |
39 | 39 |
|
40 |
| -## Rules of React {/*rules-of-react*/} |
| 40 | +## Pravila React-a {/*rules-of-react*/} |
41 | 41 |
|
42 |
| -React has idioms — or rules — for how to express patterns in a way that is easy to understand and yields high-quality applications: |
| 42 | +React ima osobine — tj. pravila — za izražavanje šablona na način koji je lako razumljiv i čini aplikacije visokokvalitetnim: |
43 | 43 |
|
44 |
| -* [Components and Hooks must be pure](/reference/rules/components-and-hooks-must-be-pure) – Purity makes your code easier to understand, debug, and allows React to automatically optimize your components and hooks correctly. |
45 |
| -* [React calls Components and Hooks](/reference/rules/react-calls-components-and-hooks) – React is responsible for rendering components and hooks when necessary to optimize the user experience. |
46 |
| -* [Rules of Hooks](/reference/rules/rules-of-hooks) – Hooks are defined using JavaScript functions, but they represent a special type of reusable UI logic with restrictions on where they can be called. |
| 44 | +* [Komponente i Hook-ovi moraju biti čisti](/reference/rules/components-and-hooks-must-be-pure) – Čistoća čini vaš kod lakšim za razumevanje i debug-ovanje i omogućava React-u da ispravno automatski optimizuje vaše komponente i hook-ove. |
| 45 | +* [React poziva komponente i hook-ove](/reference/rules/react-calls-components-and-hooks) – React je zadužen za renderovanje komponenata i hook-ova kada je to potrebno za optimizaciju korisničkog iskustva. |
| 46 | +* [Pravila Hook-ova](/reference/rules/rules-of-hooks) – Hook-ovi su definisani upotrebom JavaScript funkcija, ali predstavljaju poseban tip reusable UI logike sa ograničenjima gde mogu biti pozvani. |
47 | 47 |
|
48 |
| -## Legacy APIs {/*legacy-apis*/} |
| 48 | +## Legacy API-ji {/*legacy-apis*/} |
49 | 49 |
|
50 |
| -* [Legacy APIs](/reference/react/legacy) - Exported from the `react` package, but not recommended for use in newly written code. |
| 50 | +* [Legacy API-ji](/reference/react/legacy) - Export-ovani iz `react` paketa, ali se ne preporučuje upotreba u novonapisanom kodu. |
0 commit comments