Re:Show HN: Copy React code from any site
by thecassandrist on Saturday July 09, 2022 @05:00PM
(#32039255)
Components are only JS, aren’t they?
[ Parent
| on HN ]
They usually are but don't have to be. If you only copy the JS you'll miss any HTML content in the page that the React component uses for hydration, any CSS that's linked rather than defined in the component, any code that sits outside of the React structure, anything that comes down over an API or a socket, etc.
Itd be possible to build a React app that has very little React code in it, but it'd also be weird.