preact-render-to-string
π Universal rendering for Preact: render JSX and Preact components to HTML.
νμΌ νμκΈ°
μ΅μ’ λ²μ λ€μ΄λ‘λ (.zip)- clever-peaches-brush.md
- config.json
- gentle-eyes-trade.md
- README.md
- has-unpublished-packages.mjs
- stage-package.mjs
- ci.yml
- release.yml
- CODEOWNERS
- data.js
- Footer.js
- index.js
- search-results-data.json
- SearchResultsItem.js
- _colors.js
- color-picker.js
- benchmark-lite.js
- async.js
- index.js
- stack.js
- text.js
- node-13-exports.js
- node-commonjs.js
- node-verify-exports.js
- App.jsx
- entry-client.jsx
- entry-server.jsx
- Pokemons.jsx
- index.html
- package-lock.json
- package.json
- vite.config.js
- chunked.js
- client.js
- constants.js
- polyfills.js
- util.js
- index.d.ts
- index.js
- internal.d.ts
- jsx.d.ts
- jsx.js
- pretty.js
- stream-node.d.ts
- stream-node.js
- stream.d.ts
- stream.js
- async.test.jsx
- index.test.jsx
- render-chunked.test.jsx
- stream-node.test.jsx
- stream.test.jsx
- index.test.jsx
- render.test.jsx
- context.test.jsx
- index.test.jsx
- jsx.test.jsx
- pretty.test.jsx
- render.test.jsx
- shallowRender.test.jsx
- utils.jsx
- .editorconfig
- .gitignore
- .oxfmtrc.json
- CHANGELOG.md
- jsx.d.ts
- jsx.js
- LICENSE
- package-lock.json
- package.json
- README.md
- tsconfig.json
- typings.json
- vitest.config.ts
# μ€μΉ κ°μ΄λ
1. μ½λ λ΄λ €λ°κΈ°
git clone https://github.com/preactjs/preact-render-to-string
κΉνλΈμμ νλ‘μ νΈ μ½λ μ 체λ₯Ό λ΄ μ»΄ν¨ν°λ‘ λ΄λ €λ°μ΅λλ€.
cd preact-render-to-string
λ°©κΈ λ΄λ €λ°μ νλ‘μ νΈ ν΄λ μμΌλ‘ μ΄λν©λλ€.
2. Node.js
μ¬μ μΆμ²μ¬μ μ€λΉλ¬Ό
npm install preact preact-render-to-string
package.jsonμ λͺ μλ λΌμ΄λΈλ¬λ¦¬λ€μ λ΄λ €λ°μ μ€μΉν©λλ€.
λͺ
λ Ήμ΄ μ€ν ν ν°λ―Έλμ λνλλ μ£Όμ(λ³΄ν΅ http://localhost:3000 νν)λ₯Ό λΈλΌμ°μ μμ μ΄μ΄λ³΄μΈμ.
μ΄ λ ν¬μ READMEμ μ ν μ€μ λͺ λ Ήμ΄λ₯Ό κ·Έλλ‘ κ°μ Έμμ΅λλ€.
// repository documentation
Was this content helpful?
(0 ratings)
