Skip to content
Discussion options

You must be logged in to vote

Yes, you can do this by embedding ReactPy into your Flask HTML templates using our script

<script type="module">
  import { mount } from "https://esm.sh/@reactpy/client";
  const client = new SimpleReactPyClient({
    serverLocation: {
      url: document.location.origin,
      route: document.location.pathname,
      query: document.location.search,
    },
  });
  mount(element, client);
</script>

Please note that embedding ReactPy is currently easier to do with the Django backend, by using our template tag.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Archmonger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants