Adding a swig template, and react