~/talk

Server side rendering of React with Symfony

Talkat Web Summer Camp 2018 · 2018-08-29..09-01· [react, php]
slides:none on file

Shows how to render React from a PHP Symfony app by running Node from PHP, wrapping JS into a runner that writes a temporary file, passing a per-request variant (initial state) and caching the shared bundle. Uses Webpack/Babel (Symfony Webpack Encore), a small PHP library (PHPExec) and ideas borrowed from react_on_rails. Demonstrates working server-side HTML via ReactDOMServer, explains error handling, explains that a V8 extension speeds production a lot but is harder to install.

AI-written summary · about

  1. 0:00Introduction to workshop
  2. 1:29Why server-side rendering
  3. 11:15Setting up the environment
  4. 14:09Running JavaScript in PHP
  5. 22:16Handling JavaScript execution
  6. 27:27Using PHP-Execute-JS library
  7. 33:11Introduction to Webpack
  8. 44:17Configuring Webpack for React
  9. 54:59React fundamentals
  10. 1:00:21React components and state
  11. 1:08:56Server-side rendering with React
  12. 1:13:57React on Rails integration
  13. 1:18:02Workshop conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.