Hacker News new | ask | show | jobs
by ttty 2262 days ago
I can learn react and I can apply everywhere. Reuse my react components with styles. No global css class flying around. After a few pages static html becomes a pain to maintain.

Plus I don't like static html. If I setup webpack (you want different files, proper es6, imports...) You can easily add react.

No need to shift your thinking between static html and react.

Much easier to have 100 websites just with react. Can share components, hooks...

End of the day, faster Dev time, consistent projects, more enjoyable experience, reusable components. I trade that for a few Ms of speed.

1 comments

Templating isn't a React-only feature, there are other frameworks that give you that.

Using React for a static landing page is like using a flamethrower to light a birthday candle.

True, but you know for sure that candle is lit. ;)

On the React topic: jsx within classes does make it nice to build components, but again you’re right that others provide the same experience.

I would say that if all you're serving is a landing page, with the appropriate namespacing all you really need is SASS or even css. How many things could you possibly be sticking on a landing page that is supposed to be short and to the point?