React

class react_flask.React
__init__(templates_folder='templates', precache=True, render_all=True)

Initiates react-flask

Parameters
  • templates_folder (str) – Name of folder where templates are stored.

  • precache (bool) – Build React components and save them in memory before serving (prod).

  • render_all (bool) – Render all .js files in templates folder.

Raises

FileNotFoundError – If templates folder does not exist