Skip to content

spatialpath/reactstatictest

Repository files navigation

reactstatictest

This repo is a proof of concept of a simple node script that renders the initial state of a React component to a Drupal 7 .tpl.php file, meaning crawlers like Googlebot can still index a site accurately without having to implement a full-featured SSR solution.

Getting started:

  1. Clone this repo.
  2. Run npm install
  3. Run npm run build
  4. Run npm run staticify
  5. Review the contents of mytemplate.tpl.php
  6. Make modifications to src/index.js and re-run the above commands to test additional changes in React.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published