Cov txheej txheem:

Gatsby Web yog dab tsi?
Gatsby Web yog dab tsi?

Video: Gatsby Web yog dab tsi?

Video: Gatsby Web yog dab tsi?
Video: Je suis B0URRÉE ? 😱 2024, Hlis ntuj nqeg
Anonim

Gatsby yog React-based, GraphQL powered, static site generator. Nws siv lub zog ua ntej tsim lub vev xaib uas tsuas yog siv cov ntaub ntawv zoo li qub rau cov nplooj ntawv nrawm heev, cov neeg ua haujlwm pabcuam, kev sib cais code, server-sab rendering, ntse duab loading, cuab tam optimization, thiab cov ntaub ntawv prefetching.

Khaws qhov no hauv kev xav, Gatsby siv rau dab tsi?

Gatsby tuaj yeem yog siv rau tsim cov chaw zoo li qub uas yog Progressive Web Apps, ua raws li cov qauv hauv web tshiab, thiab tau ua kom zoo kom ua tau zoo. Nws ua siv ntawm cov thev naus laus zis tshiab thiab nrov suav nrog ReactJS, Webpack, GraphQL, niaj hnub ES6+ JavaScript thiab CSS.

Ib yam li ntawd, Gatsby puas yog qhov chaw tsim hluav taws xob zoo li qub? Gatsby yog ib qho nrov tshaj plaws static site generators tawm muaj. Nws tau tsim nrog React, uas txhais tau hais tias txhua qhov React zoo yog nyob ntawm koj lub ntsis ntiv tes ua rau koj coj kom zoo dua ntawm nws lub zog los tsim cov kev sib tham sib cuam tshuam rau hauv koj qhov static website.

Ib yam li ntawd, tib neeg nug, Gatsby txawv li cas?

Teb yog ib lub tsev qiv ntawv uas yog tsim los muab cov txheej txheem ntawm kev ua haujlwm tseem ceeb rau cov neeg tsim khoom siv zog. Nws yog tsim los ua lub teeb yuag thiab dav siv tau. Gatsby , ntawm qhov tod tes, yog, ib qho zoo li qub PWA (Progressive Web App) generator. Koj tau txais cov lej thiab cov ntaub ntawv sib cais tawm ntawm lub thawv.

Koj hais li cas Gatsby?

Nov yog 4 lub tswv yim uas yuav pab tau koj ua tiav koj lub suab ntawm 'gatsby':

  1. Tso 'gatsby' rau hauv lub suab: [GATS] + [BEE] - hais kom nrov nrov thiab nthuav tawm lub suab kom txog thaum koj tuaj yeem tsim lawv.
  2. Sau koj tus kheej hais tias 'gatsby' hauv kab lus tag nrho, tom qab ntawd saib koj tus kheej thiab mloog.

Pom zoo: