TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Rewriting parts of website in react, thoughts and best practices?

1 点作者 ciaran-ifelse将近 5 年前
We have a fairly complex dashboard written with PHP, HTML and JQuery but we are considering rewriting parts that are slow&#x2F;needs updated with react.<p>I was wondering if anyone has past experience and what is the best way to go about this?<p>Is react the best way to go?

1 comment

cell9840179419将近 5 年前
React can be a way forward. But it won&#x27;t automatically improve the perf. First take a look at your middware if you have decision making power on that. The slowness can be mitigated using microservices and graphQL. Without this enhancement, widget to widget, PHP&#x2F;jQuery is hard to beat.<p>There are many ways to write react. Take a solid boilerplate like react-boilerplate. Then bolt a good dashboard template on it. Get rid of crazy stuff (redux etc) Use Material. Write simple Functional components using hooks and tie everything together.<p>When you are rewriting, let go some stuff that you don&#x27;t need.<p>Source: we are in the middle of what you want to do.
评论 #23923878 未加载