diff --git a/src/components/Layout/HomeContent.js b/src/components/Layout/HomeContent.js index f9b785db..37d42e9d 100644 --- a/src/components/Layout/HomeContent.js +++ b/src/components/Layout/HomeContent.js @@ -143,7 +143,7 @@ export function HomeContent() { React

- The library for web and native user interfaces + Maktaba ya wavuti na interfaces za mtumiaji asilia

- Learn React + Jifunze React - API Reference + Marejeleo ya API
-
Create user interfaces from components
+
Unda interfaces za mtumiaji kutoka kwa vipengele
- React lets you build user interfaces out of individual pieces - called components. Create your own React components like{' '} - Thumbnail, LikeButton, and{' '} - Video. Then combine them into entire screens, pages, - and apps. + React inakuruhusu kuunda interfaces za mtumiaji kutokana na + vipande binafsi vinavyoitwa vipengele (components). Unda vipengele + vyako mwenyewe vya React kama Thumbnail,{' '} + LikeButton, na Video. Kisha viunganishe + ili kutengeneza skrini nzima, kurasa, na vitumizi (apps).
@@ -181,22 +181,22 @@ export function HomeContent() {
- Whether you work on your own or with thousands of other - developers, using React feels the same. It is designed to let you - seamlessly combine components written by independent people, - teams, and organizations. + Iwe unafanya kazi peke yako au na maelfu ya wasanidi programu + wengine, kutumia React kunahisiwa vile vile. Imeundwa ili + kukuruhusu kuunganisha bila matatizo vipengele vilivyoandikwa na + watu, timu, na mashirika.
-
Write components with code and markup
+
Andika vipengele kwa kodi na alama (markup)
- React components are JavaScript functions. Want to show some - content conditionally? Use an if statement. - Displaying a list? Try array map(). Learning React is - learning programming. + Vipengele vya React ni vitendaji vya JavaScript. Unataka kuonyesha + maudhui kwa masharti? Tumia kauli ya if. Kuonyesha + orodha? Jaribu array map(). Kujifunza React ni + kujifunza programming.
@@ -204,22 +204,23 @@ export function HomeContent() {
- This markup syntax is called JSX. It is a JavaScript syntax - extension popularized by React. Putting JSX markup close to - related rendering logic makes React components easy to create, - maintain, and delete. + Sintaksia hii ya alama inaitwa JSX. Ni upanuzi wa sintaksia ya + JavaScript uliopata umaarufu kupitia React. Kuweka alama za JSX + karibu na lojiki husika ya uwasilishaji (rendering logic) hufanya + vipengele vya React kuwa rahisi kuunda, kudumisha, na kufuta.
-
Add interactivity wherever you need it
+
Ongeza mwingiliano popote unapouhitaji
- React components receive data and return what should appear on the - screen. You can pass them new data in response to an interaction, - like when the user types into an input. React will then update the - screen to match the new data. + Vipengele vya React hupokea data na kurudisha kile kinachopaswa + kuonekana kwenye kioo. Unaweza kuvipatia data mpya kama mwitikio + wa mwingiliano, kama vile mtumiaji anapoandika kwenye kisanduku + cha kuingiza data (input). Kisha React itahuisha kioo ili kiendane + na data hiyo mpya.
@@ -227,16 +228,16 @@ export function HomeContent() {
- You don’t have to build your whole page in React. Add React to - your existing HTML page, and render interactive React components - anywhere on it. + Sio lazima ujenge ukurasa wako wote kwa React. Ongeza React kwenye + ukurasa wako wa HTML uliopo, na uwasilishe (render) vipengele + unganishi vya React popote pale.
- Add React to your page + Ongeza React kwenye ukurasa wako
@@ -245,14 +246,15 @@ export function HomeContent() {
- Go full-stack
- with a framework + Tumia full-stack
+ pamoja na framework
- React is a library. It lets you put components together, but it - doesn’t prescribe how to do routing and data fetching. To build an - entire app with React, we recommend a full-stack React framework - like Next.js or{' '} + React ni maktaba. Inakuruhusu kuunganisha vipengele, lakini + haielekezi jinsi ya kufanya uelekezaji (routing) na upataji wa + data. Ili kujenga programu kamili na React, tunapendekeza + framework ya full-stack kama{' '} + Next.js au{' '} React Router.
@@ -261,32 +263,36 @@ export function HomeContent() {
- React is also an architecture. Frameworks that implement it let - you fetch data in asynchronous components that run on the server - or even during the build. Read data from a file or a database, and - pass it down to your interactive components. + React pia ni usanifu (architecture). Frameworks zinazoitumia + zinakuruhusu kupata data katika vipengele asilia (asynchronous + components) vinavyofanya kazi kwenye seva au hata wakati wa ujenzi + (build). Soma data kutoka kwenye faili au kanzi data (database), + na ipitishe kwenye vipengele vyako unganishi.
- Get started with a framework + Anza kutumia framework
+
-
Use the best from every platform
+
Tumia ubora wa kila jukwaa
- People love web and native apps for different reasons. React - lets you build both web apps and native apps using the same - skills. It leans upon each platform’s unique strengths to let - your interfaces feel just right on every platform. + Watu wanapenda programu za wavuti (web apps) na zile asilia + (native apps) kwa sababu tofauti. React inakuruhusu kujenga zote + mbili kwa kutumia ujuzi ule ule. Inategemea uimara wa kipekee wa + kila jukwaa ili kufanya violesura vyako vionekane na kuhisiwa + vyema kwenye kila jukwaa.
+
@@ -298,15 +304,17 @@ export function HomeContent() {

- Stay true to the web + Baki mwaminifu kwa wavuti

- People expect web app pages to load fast. On the server, - React lets you start streaming HTML while you’re still - fetching data, progressively filling in the remaining - content before any JavaScript code loads. On the client, - React can use standard web APIs to keep your UI - responsive even in the middle of rendering. + Watu wanatarajia kurasa za programu za wavuti kupakia + haraka. Kwenye seva, React inakuruhusu kuanza + kutiririsha (streaming) HTML ukiwa bado unapata data, na + kujaza maudhui yaliyosalia hatua kwa hatua kabla ya kodi + yoyote ya JavaScript kupakiwa. Kwa upande wa mtumiaji + (client), React inaweza kutumia API za kawaida za wavuti + ili kufanya kiolesura chako (UI) kiendelee kuitikia kwa + haraka hata katikati ya uwasilishaji (rendering).

@@ -384,21 +392,23 @@ export function HomeContent() {

- Go truly native + Tumia mfumo asilia kabisa

- People expect native apps to look and feel like their - platform.{' '} + Watu wanatarajia programu asilia (native apps) + zionekane na kuhisiwa kulingana na jukwaa lao.{' '} React Native {' '} - and{' '} + na{' '} Expo{' '} - let you build apps in React for Android, iOS, and - more. They look and feel native because their UIs{' '} - are truly native. It’s not a web view—your - React components render real Android and iOS views - provided by the platform. + zinakuruhusu kujenga programu kwa kutumia React kwa + ajili ya Android, iOS, na mifumo mingineyo. + Zinaonekana na kuhisiwa kama asilia kwa sababu + violesura vyake ni asilia kikweli. Sio + mwonekano wa wavuti—vipengele vyako vya React + vinawasilisha mionekano halisi ya Android na iOS + inayotolewa na jukwaa husika.

@@ -408,14 +418,15 @@ export function HomeContent() {
- With React, you can be a web and a native developer. Your - team can ship to many platforms without sacrificing the user - experience. Your organization can bridge the platform silos, and - form teams that own entire features end-to-end. + Ukiwa na React, unaweza kuwa msanidi wa wavuti na wa + mifumo asilia. Timu yako inaweza kutoa programu kwenye majukwaa + mengi bila kuathiri hali ya utumiaji (user experience). Shirika + lako linaweza kuunganisha migawanyiko ya majukwaa, na kuunda + timu zinazosimamia vipengele vizima mwanzo hadi mwisho.
- Build for native platforms + Jenga kwa ajili ya majukwaa asilia
@@ -426,23 +437,26 @@ export function HomeContent() {
-
Upgrade when the future is ready
+
Boresha wakati ujao ukiwa tayari
- React approaches changes with care. Every React commit is - tested on business-critical surfaces with over a billion - users. Over 100,000 React components at Meta help validate - every migration strategy. + React hupokea mabadiliko kwa umakini mkubwa. Kila mabadiliko + ya kodi (commit) ya React hufanyiwa majaribio kwenye mifumo + muhimu ya kibiashara inayotumiwa na zaidi ya watumiaji bilioni + moja. Zaidi ya vipengele 100,000 vya React ndani ya Meta + husaidia kuhakiki kila mkakati wa uhamiaji.
- The React team is always researching how to improve React. - Some research takes years to pay off. React has a high bar - for taking a research idea into production. Only proven - approaches become a part of React. + Timu ya React hufanya utafiti kila wakati kuhusu jinsi ya + kuiboresha React. Baadhi ya tafiti huchukua miaka mingi + kuleta matokeo. React ina vigezo vya juu sana kabla ya + kuingiza wazo la utafiti kwenye mazingira halisi ya matumizi + (production). Ni mbinu zilizothibitishwa pekee ndizo + zinazokuwa sehemu ya React.
- Read more React news + Soma habari zaidi za React
@@ -450,7 +464,7 @@ export function HomeContent() {

- Latest React News + Habari Mpya za React

@@ -468,7 +482,7 @@ export function HomeContent() {
- Read more React news + Soma zaidi Habari za React
@@ -481,13 +495,14 @@ export function HomeContent() {
- Join a community
- of millions + Jiunge na jumuiya
+ ya mamilioni
- You’re not alone. Two million developers from all over the - world visit the React docs every month. React is something - that people and teams can agree on. + Hauko peke yako. Wasanidi programu milioni mbili kutoka kote + ulimwenguni hutembelea nyaraka (docs) za React kila mwezi. + React ni jambo ambalo watu na timu wanaweza kukubaliana + kuhusu.
@@ -495,13 +510,14 @@ export function HomeContent() {
- This is why React is more than a library, an architecture, or - even an ecosystem. React is a community. It’s a place where - you can ask for help, find opportunities, and meet new - friends. You will meet both developers and designers, - beginners and experts, researchers and artists, teachers and - students. Our backgrounds may be very different, but React - lets us all create user interfaces together. + Hii ndiyo sababu React ni zaidi ya maktaba, usanifu, au hata + mfumo wa ikolojia (ecosystem). React ni jumuiya. Ni mahali + ambapo unaweza kuomba msaada, kupata fursa, na kukutana na + marafiki wapya. Utakutana na watengenezaji programu na + wabunifu, wanaoanza na wataalamu, watafiti na wasanii, walimu + na wanafunzi. Asili zetu zinaweza kuwa tofauti sana, lakini + React inaturuhusu sote kuunda violesura vya watumiaji kwa + pamoja.
@@ -518,15 +534,15 @@ export function HomeContent() {
- Welcome to the
- React community + Karibu kwenye
+ jumuiya ya React
- Get Started + label="Soma Mafunzo"> + Anza Sasa
diff --git a/src/content/learn/setup.md b/src/content/learn/setup.md index 2c46ee14..9248035f 100644 --- a/src/content/learn/setup.md +++ b/src/content/learn/setup.md @@ -1,28 +1,28 @@ --- -title: Setup +title: Mpangilio --- -React integrates with tools like editors, TypeScript, browser extensions, and compilers. This section will help you get your environment set up. +React huingiliana na zana kama vile kihariri, TypeScript, viendelezi (extensions) vya kivinjari, na compilers. Sehemu hii itakusaidia kuandaa mazingira yako ya kazi. -## Editor Setup {/*editor-setup*/} +## Mpangilio wa Kihariri {/*editor-setup*/} -See our [recommended editors](/learn/editor-setup) and learn how to set them up to work with React. +Tazama [vihariri tunavyopendekeza](/learn/editor-setup) na ujifunze jinsi ya kuvipanga ili vifanye kazi na React. -## Using TypeScript {/*using-typescript*/} +## Kutumia TypeScript {/*using-typescript*/} -TypeScript is a popular way to add type definitions to JavaScript codebases. [Learn how to integrate TypeScript into your React projects](/learn/typescript). +TypeScript ni njia maarufu ya kuongeza maelezo ya aina (type definitions) kwenye kodi za JavaScript. [Jifunze jinsi ya kuunganisha TypeScript kwenye miradi yako ya React](/learn/typescript). -## React Developer Tools {/*react-developer-tools*/} +## Zana za React Developer {/*react-developer-tools*/} -React Developer Tools is a browser extension that can inspect React components, edit props and state, and identify performance problems. Learn how to install it [here](learn/react-developer-tools). +Zana za React Developer ni kiendelezi cha kivinjari kinachoweza kukagua vipengele vya React, kuhariri props na state, na kutambua matatizo ya utendakazi. Jifunze jinsi ya kuistakinisha [hapa](learn/react-developer-tools). -## React Compiler {/*react-compiler*/} +## Compiler ya React {/*react-compiler*/} -React Compiler is a tool that automatically optimizes your React app. [Learn more](/learn/react-compiler). +React Compiler ni zana inayoboresha kitumizi chako cha React kiotomatiki. [Jifunze zaidi](/learn/react-compiler). -## Next steps {/*next-steps*/} +## Hatua zinazofuata {/*next-steps*/} -Head to the [Quick Start](/learn) guide for a tour of the most important React concepts you will encounter every day. +Nenda kwenye mwongozo wa [Anza Haraka](/learn) ili upate maelezo ya dhana muhimu zaidi za React utakazokutana nazo kila siku. \ No newline at end of file