Skip to content

helloguille/preact-php-server-render-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

preact-php-server-render-example

Example on using Preact and PHP V8-JS to server-render preact components.

Requeriments

Setup

git clone git@github.com:helloguille/preact-php-server-render-example.git
cd preact-php-server-render-example
npm install
npm run build

Explanation

This project consists of two bundles: One for the server (bundle-server.js) and one for the client (bundle-client.js). When index.php with your server, PHP will output the rendered Preact component. After the onload event, client-side rendering and event handling will be executed at browser level.

About

Example on using Preact and PHP V8-JS to server-render preact components.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published