Comment

Comment by TeeWEE

I like the idea of React. However, Mixing HTML in your javascript is a very bad thing. You are mixing presentation with logic, and i always try to prevent that. Keep your logic away from your templates. I think its doable with react, but most people dont do it... Can somebody explain me why?

  +    return (
  +      <html>
  +        <head>
  +          <title>{this.props.title}</title>
  +        </head>
  +        <body>
  +          {this.props.children}
  +          {script}
  +        </body>
  +      </html>
  +    );

https://github.com/jlongster/blog/blob/master/src/components...
parent TeeWEE 11 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton