Export datatable to static html file with embeded react scripts etc

I currently use the following method for exporting plotly figures to html: fig.write_html()

Works great however I want to also do this with dash_table.datatable. I don’t require any linked callbacks of the full dash layout just the datatable component and it’s associated interactivity scripts.

I believe this should be theoretically possible as I can view a datatable and then disconnect the server. The table still functions perfectly (pagination, filtering) with the most recent data, which is what I want. However I don’t want all of the other components on the screen, just the table.

Any ideas ?