Skip to content

Commit 077cd80

Browse files
authored
Merge pull request #139 from reactjs/features/creating-a-react-app
2 parents fa667b0 + f404e00 commit 077cd80

File tree

1 file changed

+35
-35
lines changed

1 file changed

+35
-35
lines changed
Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,113 +1,113 @@
11
---
2-
title: Creating a React App
2+
title: Kreiranje React aplikacije
33
---
44

55
<Intro>
66

7-
If you want to build a new app or website with React, we recommend starting with a framework.
7+
Ako želite da napravite novu aplikaciju ili novi sajt koristeći React, preporučujemo da počnete sa framework-om.
88

99
</Intro>
1010

11-
If your app has constraints not well-served by existing frameworks, you prefer to build your own framework, or you just want to learn the basics of a React app, you can [build a React app from scratch](/learn/build-a-react-app-from-scratch).
11+
Ako vaša aplikacija ima ograničenja koja nisu dobro rešena u postojećim framework-ovima, ako želite da napravite sopstveni framework, ili samo želite naučiti osnove React aplikacija, možete [napraviti React aplikaciju od nule](/learn/build-a-react-app-from-scratch).
1212

13-
## Full-stack frameworks {/*full-stack-frameworks*/}
13+
## Full-stack framework-ovi {/*full-stack-frameworks*/}
1414

15-
These recommended frameworks support all the features you need to deploy and scale your app in production. They have integrated the latest React features and take advantage of React’s architecture.
15+
Ovi preporučeni framework-ovi podržavaju sve funkcionalnosti koje su vam potrebne za deploy i skaliranje aplikacija u produkciji. Integrisali su najnovije React funkcionalnosti i iskoristili prednosti React-ove arhitekture.
1616

1717
<Note>
1818

19-
#### Full-stack frameworks do not require a server. {/*react-frameworks-do-not-require-a-server*/}
19+
#### Full-stack framework-ovima nije potreban server. {/*react-frameworks-do-not-require-a-server*/}
2020

21-
All the frameworks on this page support client-side rendering ([CSR](https://developer.mozilla.org/en-US/docs/Glossary/CSR)), single-page apps ([SPA](https://developer.mozilla.org/en-US/docs/Glossary/SPA)), and static-site generation ([SSG](https://developer.mozilla.org/en-US/docs/Glossary/SSG)). These apps can be deployed to a [CDN](https://developer.mozilla.org/en-US/docs/Glossary/CDN) or static hosting service without a server. Additionally, these frameworks allow you to add server-side rendering on a per-route basis, when it makes sense for your use case.
21+
Svi framework-ovi na ovoj stranici podržavaju renderovanje na klijentskoj strani ([CSR](https://developer.mozilla.org/en-US/docs/Glossary/CSR)), single-page aplikacije ([SPA](https://developer.mozilla.org/en-US/docs/Glossary/SPA)) i generisanje statičkih sajtova ([SSG](https://developer.mozilla.org/en-US/docs/Glossary/SSG)). Ove aplikacije se mogu deploy-ovati na [CDN](https://developer.mozilla.org/en-US/docs/Glossary/CDN) ili na statički hosting servis bez servera. Dodatno, ovi framework-ovi dozvoljavaju dodavanje renderovanja na serverskoj strani na nivou rute, ako vam je to zgodno za vašu aplikaciju.
2222

23-
This allows you to start with a client-only app, and if your needs change later, you can opt-in to using server features on individual routes without rewriting your app. See your framework's documentation for configuring the rendering strategy.
23+
Ovo vam omogućava da počnete samo sa klijentskom aplikacijom, pa, ako vam kasnije zatreba, možete se odlučiti za upotrebu servera samo na određenim rutama bez ponovnog pisanja aplikacije. Pogledajte dokumentaciju framework-a za konfigurisanje strategije renderovanja.
2424

2525
</Note>
2626

2727
### Next.js (App Router) {/*nextjs-app-router*/}
2828

29-
**[Next.js's App Router](https://nextjs.org/docs) is a React framework that takes full advantage of React's architecture to enable full-stack React apps.**
29+
**[Next.js-ov App Router](https://nextjs.org/docs) je React framework koji u potpunosti koristi prednosti React-ove arhitekture kako bi omogućio full-stack React aplikacije.**
3030

3131
<TerminalBlock>
3232
npx create-next-app@latest
3333
</TerminalBlock>
3434

35-
Next.js is maintained by [Vercel](https://vercel.com/). You can [deploy a Next.js app](https://nextjs.org/docs/app/building-your-application/deploying) to any Node.js or serverless hosting, or to your own server. Next.js also supports [static export](https://nextjs.org/docs/app/building-your-application/deploying/static-exports) which doesn't require a server. Vercel additionally provides opt-in paid cloud services.
35+
Next.js je održavan od strane [Vercel-a](https://vercel.com/). Možete [deploy-ovati Next.js aplikaciju](https://nextjs.org/docs/app/building-your-application/deploying) na bilo koji Node.js ili serverless hosting, ili na vaš sopstveni server. Next.js takođe podržava [static export](https://nextjs.org/docs/app/building-your-application/deploying/static-exports) koji ne zahteva server. Vercel dodatno pruža i opcione cloud servise koji se plaćaju.
3636

3737
### React Router (v7) {/*react-router-v7*/}
3838

39-
**[React Router](https://reactrouter.com/start/framework/installation) is the most popular routing library for React and can be paired with Vite to create a full-stack React framework**. It emphasizes standard Web APIs and has several [ready to deploy templates](https://github.com/remix-run/react-router-templates) for various JavaScript runtimes and platforms.
39+
**[React Router](https://reactrouter.com/start/framework/installation) je najpopularnija biblioteka za rutiranje u React-u i može se upariti sa Vite-om za pravljenje full-stack React framework-a.** On naglašava standardne Web API-je i ima nekoliko [deploy template-a spremnih za upotrebu](https://github.com/remix-run/react-router-templates) za različite JavaScript runtime-ove i platforme.
4040

41-
To create a new React Router framework project, run:
41+
Da biste kreirali novi React Router framework projekat, pokrenite:
4242

4343
<TerminalBlock>
4444
npx create-react-router@latest
4545
</TerminalBlock>
4646

47-
React Router is maintained by [Shopify](https://www.shopify.com).
47+
[Shopify](https://www.shopify.com) održava React Router.
4848

49-
### Expo (for native apps) {/*expo*/}
49+
### Expo (za native aplikacije) {/*expo*/}
5050

51-
**[Expo](https://expo.dev/) is a React framework that lets you create universal Android, iOS, and web apps with truly native UIs.** It provides an SDK for [React Native](https://reactnative.dev/) that makes the native parts easier to use. To create a new Expo project, run:
51+
**[Expo](https://expo.dev/) je React framework koji vam omogućava da kreirate univerzalne Android, iOS i web aplikacije sa zaista native korisničkim interfejsima.** On pruža SDK za [React Native](https://reactnative.dev/) koji olakšava korišćenje native delova. Da biste kreirali novi Expo projekat, pokrenite:
5252

5353
<TerminalBlock>
5454
npx create-expo-app@latest
5555
</TerminalBlock>
5656

57-
If you're new to Expo, check out the [Expo tutorial](https://docs.expo.dev/tutorial/introduction/).
57+
Ako vam je Expo nepoznat, pogledajte [Expo tutorijal](https://docs.expo.dev/tutorial/introduction/).
5858

59-
Expo is maintained by [Expo (the company)](https://expo.dev/about). Building apps with Expo is free, and you can submit them to the Google and Apple app stores without restrictions. Expo additionally provides opt-in paid cloud services.
59+
Expo je održavan od strane [Expo (kompanije)](https://expo.dev/about). Kreiranje aplikacija sa Expo-om je besplatno i možete ih submit-ovati na Google i Apple app store bez ograničenja. Expo dodatno pruža i opcione cloud servise koji se plaćaju.
6060

6161

62-
## Other frameworks {/*other-frameworks*/}
62+
## Ostali framework-ovi {/*other-frameworks*/}
6363

64-
There are other up-and-coming frameworks that are working towards our full stack React vision:
64+
Postoji nekoliko nadolazećih framework-ova koji rade na našoj full stack React viziji:
6565

66-
- [TanStack Start (Beta)](https://tanstack.com/): TanStack Start is a full-stack React framework powered by TanStack Router. It provides a full-document SSR, streaming, server functions, bundling, and more using tools like Nitro and Vite.
67-
- [RedwoodJS](https://redwoodjs.com/): Redwood is a full stack React framework with lots of pre-installed packages and configuration that makes it easy to build full-stack web applications.
66+
- [TanStack Start (Beta)](https://tanstack.com/): TanStack Start je full-stack React framework nastao zbog TanStack Router-a. Pruža renderovanje celih dokumenata na serverskoj strani, strimovanje, serverske funkcije, bundle-ovanje i još mnogo toga koristeći alate poput Nitro-a i Vite-a.
67+
- [RedwoodJS](https://redwoodjs.com/): Redwood je full stack React framework sa mnogo unapred instaliranih paketa i konfiguracija koje olakšavaju pravljenje full-stack web aplikacija.
6868

6969
<DeepDive>
7070

71-
#### Which features make up the React team’s full-stack architecture vision? {/*which-features-make-up-the-react-teams-full-stack-architecture-vision*/}
71+
#### Koje funkcionalnosti čine viziju full-stack arhitekture React-ovog tima? {/*which-features-make-up-the-react-teams-full-stack-architecture-vision*/}
7272

73-
Next.js's App Router bundler fully implements the official [React Server Components specification](https://github.com/reactjs/rfcs/blob/main/text/0188-server-components.md). This lets you mix build-time, server-only, and interactive components in a single React tree.
73+
Next.js-ov App Router bundler potpuno implementira zvaničnu [React Server Components specifikaciju](https://github.com/reactjs/rfcs/blob/main/text/0188-server-components.md). Ovo vam omogućava da pomešate komponente koje se izvršavaju tokom vremena izgradnje, komponente koje se izvršavaju samo na serveru i interaktivne komponente u jednom React stablu.
7474

75-
For example, you can write a server-only React component as an `async` function that reads from a database or from a file. Then you can pass data down from it to your interactive components:
75+
Na primer, možete napisati server-only React komponentu kao `async` funkciju koja čita iz baze podataka ili iz fajla. Zatim, vašim interaktivnim komponentama možete proslediti podatke iz nje:
7676

7777
```js
78-
// This component runs *only* on the server (or during the build).
78+
// Ova komponenta se izvršava *samo* na serveru (ili tokom vremena izgradnje).
7979
async function Talks({ confId }) {
80-
// 1. You're on the server, so you can talk to your data layer. API endpoint not required.
80+
// 1. Vi ste na serveru, tako da možete da komunicirate sa vašim podacima. API pristupna tačka nije potrebna.
8181
const talks = await db.Talks.findAll({ confId });
8282

83-
// 2. Add any amount of rendering logic. It won't make your JavaScript bundle larger.
83+
// 2. Dodajte bilo koju količinu logike renderovanja. To neće učiniti vaš JavaScript bundle većim.
8484
const videos = talks.map(talk => talk.video);
8585

86-
// 3. Pass the data down to the components that will run in the browser.
86+
// 3. Prosledite podatke komponentama koje će se izvršavati u pretraživaču.
8787
return <SearchableVideoList videos={videos} />;
8888
}
8989
```
9090

91-
Next.js's App Router also integrates [data fetching with Suspense](/blog/2022/03/29/react-v18#suspense-in-data-frameworks). This lets you specify a loading state (like a skeleton placeholder) for different parts of your user interface directly in your React tree:
91+
Next.js-ov App Router je takođe integrisan sa [fetch-ovanjem podataka pomoću Suspense-a](/blog/2022/03/29/react-v18#suspense-in-data-frameworks). Ovo vam omogućava da specificirate stanje učitavanja (kao što je skeleton placeholder) za različite delove vašeg korisničkog interfejsa direktno u vašem React stablu:
9292

9393
```js
9494
<Suspense fallback={<TalksLoading />}>
9595
<Talks confId={conf.id} />
9696
</Suspense>
9797
```
9898

99-
Server Components and Suspense are React features rather than Next.js features. However, adopting them at the framework level requires buy-in and non-trivial implementation work. At the moment, the Next.js App Router is the most complete implementation. The React team is working with bundler developers to make these features easier to implement in the next generation of frameworks.
99+
Server Components i Suspense su funkcionalnosti React-a, a ne Next.js-a. Međutim, njihovo usvajanje na nivou framework-a zahteva podršku i netrivijalan rad na implementaciji. Trenutno, Next.js App Router je najkompletnija implementacija. React tim sarađuje sa developerima bundler-a kako bi ove funkcionalnosti bile lakše za implementaciju u sledećoj generaciji framework-ova.
100100

101101
</DeepDive>
102102

103-
## Start From Scratch {/*start-from-scratch*/}
103+
## Početak od nule {/*start-from-scratch*/}
104104

105-
If your app has constraints not well-served by existing frameworks, you prefer to build your own framework, or you just want to learn the basics of a React app, there are other options available for starting a React project from scratch.
105+
Ako vaša aplikacija ima ograničenja koja nisu dobro rešena u postojećim framework-ovima, ako želite da napravite sopstveni framework, ili samo želite naučiti osnove React aplikacija, postoji još opcija za započinjanje React projekta od nule.
106106

107-
Starting from scratch gives you more flexibility, but does require that you make choices on which tools to use for routing, data fetching, and other common usage patterns. It's a lot like building your own framework, instead of using a framework that already exists. The [frameworks we recommend](#full-stack-frameworks) have built-in solutions for these problems.
107+
Početak od nule vam pruža više fleksibilnosti, ali zahteva da napravite odluku koje alate ćete koristiti za rutiranje, fetch-ovanje podataka i ostale često korišćene šablone. To je kao da pravite sopstveni framework, a ne da koristite već postojeći. [Framework-ovi koje preporučujemo](#full-stack-frameworks) imaju ugrađena rešenja za ovakve probleme.
108108

109-
If you want to build your own solutions, see our guide to [build a React app from Scratch](/learn/build-a-react-app-from-scratch) for instructions on how to set up a new React project starting with a built tool like [Vite](https://vite.dev/), [Parcel](https://parceljs.org/), or [RSbuild](https://rsbuild.dev/).
109+
Ako želite napraviti vaša rešenja, pogledajte uputstvo kako [napraviti React aplikaciju od nule](/learn/build-a-react-app-from-scratch) za instrukcije oko postavki React projekta počevši od postojećih alata kao što su [Vite](https://vite.dev/), [Parcel](https://parceljs.org/) ili [RSbuild](https://rsbuild.dev/).
110110

111111
-----
112112

113-
_If you’re a framework author interested in being included on this page, [please let us know](https://github.com/reactjs/react.dev/issues/new?assignees=&labels=type%3A+framework&projects=&template=3-framework.yml&title=%5BFramework%5D%3A+)._
113+
_Ako ste vi autor framework-a i zainteresovani ste da ga uključimo u ovu stranicu, [molimo vas da nam javite](https://github.com/reactjs/react.dev/issues/new?assignees=&labels=type%3A+framework&projects=&template=3-framework.yml&title=%5BFramework%5D%3A+)._

0 commit comments

Comments
 (0)