Skip to content

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

Notifications You must be signed in to change notification settings

helloguille/preact-php-server-render-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

preact-php-server-render-example

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

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

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

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