reactive-python / reactpy

It's React, but in Python
https://reactpy.dev
MIT License
7.86k stars 315 forks source link

Don't strip Script tag elements #797

Open Archmonger opened 2 years ago

Archmonger commented 2 years ago

Current Situation

The client code currently strips script tags and replaces them with div.

For example, this script element wont appear within the browser's DOM.


@component
def my_component():
   return html.script("console.log('hello_world');")

Proposed Actions

Remove this behavior, since we now officially support script within ReactPy. There's no longer any reason to visually hide the script tag.

rishabhRsinghvi commented 11 months ago

@Archmonger Please assign this stuff to me, I think I can do this.

Archmonger commented 11 months ago

@rishabhRsinghvi We do not use the GitHub issue assignment feature. Feel free to open a PR and link it to this issue.