Using react client-side with swig templates