Skip to content
Merged
Changes from all 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
52 changes: 26 additions & 26 deletions src/content/reference/react/index.md
Original file line number Diff line number Diff line change
@@ -1,50 +1,50 @@
---
title: React Reference Overview
title: Pregled React referenci
---

<Intro>

This section provides detailed reference documentation for working with React. For an introduction to React, please visit the [Learn](/learn) section.
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).

</Intro>

The React reference documentation is broken down into functional subsections:
Dokumentacija React referenci je podeljena na par funkcionalnih podsekcija:

## React {/*react*/}

Programmatic React features:
Programske React funkcionalnosti:

* [Hooks](/reference/react/hooks) - Use different React features from your components.
* [Components](/reference/react/components) - Built-in components that you can use in your JSX.
* [APIs](/reference/react/apis) - APIs that are useful for defining components.
* [Directives](/reference/rsc/directives) - Provide instructions to bundlers compatible with React Server Components.
* [Hook-ovi](/reference/react/hooks) - Upotreba različitih React funkcionalnosti u vašim komponentama.
* [Komponente](/reference/react/components) - Ugrađene komponente koje možete koristiti u vašem JSX-u.
* [API-ji](/reference/react/apis) - API-ji koji su korisni za definisanje komponenti.
* [Direktive](/reference/rsc/directives) - Pružanje instrukcija bundler-ima kompatibilnim sa React Server Components.

## React DOM {/*react-dom*/}

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:
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:

* [Hooks](/reference/react-dom/hooks) - Hooks for web applications which run in the browser DOM environment.
* [Components](/reference/react-dom/components) - React supports all of the browser built-in HTML and SVG components.
* [APIs](/reference/react-dom) - The `react-dom` package contains methods supported only in web applications.
* [Client APIs](/reference/react-dom/client) - The `react-dom/client` APIs let you render React components on the client (in the browser).
* [Server APIs](/reference/react-dom/server) - The `react-dom/server` APIs let you render React components to HTML on the server.
* [Hook-ovi](/reference/react-dom/hooks) - Hook-ovi za web aplikacije koje su pokrenute u DOM okruženju pretraživača.
* [Komponente](/reference/react-dom/components) - React sadrži sve HTML i SVG komponente ugrađene u pretraživač.
* [API-ji](/reference/react-dom) - `react-dom` paket sadrži metode podržane samo u web aplikacijama.
* [Klijentski API-ji](/reference/react-dom/client) - `react-dom/client` API-ji omogućavaju renderovanje React komponenata na klijentu (u pretraživaču).
* [Serverski API-ji](/reference/react-dom/server) - `react-dom/server` API-ji omogućavaju renderovanje React komponenata u HTML na serveru.

## React Compiler {/*react-compiler*/}
## React kompajler {/*react-compiler*/}

The React Compiler is a build-time optimization tool that automatically memoizes your React components and values:
React kompajler je alat za optimizaciju vremena izgradnje koji automatski memoriše vaše React komponente i vrednosti:

* [Configuration](/reference/react-compiler/configuration) - Configuration options for React Compiler.
* [Directives](/reference/react-compiler/directives) - Function-level directives to control compilation.
* [Compiling Libraries](/reference/react-compiler/compiling-libraries) - Guide for shipping pre-compiled library code.
* [Konfiguracija](/reference/react-compiler/configuration) - Opcije za konfiguraciju React kompajlera.
* [Direktive](/reference/react-compiler/directives) - Direktive na nivou funkcija za kontrolu kompilacije.
* [Kompajliranje biblioteka](/reference/react-compiler/compiling-libraries) - Uputstvo za isporuku prekompajliranog koda biblioteke.

## Rules of React {/*rules-of-react*/}
## Pravila React-a {/*rules-of-react*/}

React has idiomsor rulesfor how to express patterns in a way that is easy to understand and yields high-quality applications:
React ima osobinetj. pravilaza izražavanje šablona na način koji je lako razumljiv i čini aplikacije visokokvalitetnim:

* [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.
* [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.
* [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.
* [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.
* [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.
* [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.

## Legacy APIs {/*legacy-apis*/}
## Legacy API-ji {/*legacy-apis*/}

* [Legacy APIs](/reference/react/legacy) - Exported from the `react` package, but not recommended for use in newly written code.
* [Legacy API-ji](/reference/react/legacy) - Export-ovani iz `react` paketa, ali se ne preporučuje upotreba u novonapisanom kodu.