Swig extension for prerendering React components