Live data from Hacker News

Show HN: Copy React code from any site

sample-code.aspect.app

41–50 of 83 posts

Re: Show HN: Copy React code from any site

#41
post #22

Earlier quoted context omitted.

> Remember: others' work is theirs unless they license it to you. But Google scraping the web is somehow allowed? I'm not against it but these laws seem arbitrary.

All laws are arbitrary. But the story of how we got them is meaningful. Copyright exists to encourage more copyable stuff to be made (pg has a good essay on this topic, where he observes history shows the opposite of a copyright regime isn't openness... It's guilds and secrecy cults). What Google does (interpreting the data that scans to help you find references to searches) is considered either transformative work,…

> Copyright exists to encourage more copyable stuff to be made

This is a backward legitimization attempt. Copyright was made because editors, authors and composers lobbied to get a monopoly on their creations and derivative work. As a matter of fact, copyright was continuously expanded on requests from rent-seeking copyright holders (which, in the overwhelming majority of case, aren't creators of any kind).

Re: Show HN: Copy React code from any site

#42

Remember: others' work is theirs unless they license it to you. Just because you technically can copy something doesn't mean you're allowed to make and distribute copies or derivatives. If you do this professionally, you'll get yourself or your employer sued, and/or your work pulled off the internet against your will. You wouldn't steal a policeman's helmet, etc.

Two absurd claims: 1. Getting sued 2. Getting your work pulled off the internet

You say that you or your employer would be sued if you did this. Going through a legal battle over some copied HTML, CSS & JavaScript is expensive, distracting and time consuming. You'd first get a cease and desist letter. Who has the time or energy to sue over this?

Getting your work pulled off the internet against your will. How would that happen? Have you heard of the pirate bay? There's no off-switch because you used someones react component.

You might not like this tool or feel it facilitates behavior you consider unethical, and I get that, but these claims you made are absurd.

Re: Show HN: Copy React code from any site

#43
post #4

great work, although I would expect some lash back from the React/SPA front end dev guys ;-)

No lash back,

but real question on the value, IMO this tool is very useful for beginners, but myself being more experienced now, I would not use it. The html structure and the inline style are not good enough right now.

Re: Show HN: Copy React code from any site

#44

This is pretty cool. Are you worried about copyright at all though? Especially if this get used in a commercial context?

I don’t think it’s an issue of the tool or the tool created, as others have pointed out, but how would you ever know someone stole your stuff this way?

We still compile our TS to an ES5 target with bootstrap. If you copied a form from our site into the tool, it would be hard for us to tell you took it from us rather than writing it yourself. Maybe if you took some of our more custom card designs, but really, we wouldn’t know that you didn’t just design them yourself similar to how we did because you had the same issues.

Re: Show HN: Copy React code from any site

#46

This is pretty cool. Are you worried about copyright at all though? Especially if this get used in a commercial context?

if the code for the web app is available (assuming a license that permits it) there is no need to use an extension to copy a component. you got the source code

if the code is not available, very likely you will not have permission to use it.

Don't see a legal usage of this kind of tool in a commercial context. Pretty useful as a learning too though

Re: Show HN: Copy React code from any site

#47

I think there is great value if you sell this to all the small web agencies. But it is a bit misleading to say it will copy a component. Components are more than HTML/CSS. Maybe rephrase it in "templating" ?

Components are only JS, aren’t they?

Re: Show HN: Copy React code from any site

#50

I think there is great value if you sell this to all the small web agencies. But it is a bit misleading to say it will copy a component. Components are more than HTML/CSS. Maybe rephrase it in "templating" ?

Components are only JS, aren’t they?

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.

Post reply on HN