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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Master these five concepts to master React

174 点作者 ziodave超过 8 年前

9 条评论

eternalban超过 8 年前
Components and &quot;higher-order component factory function&quot;. Waiting for &quot;factory factories&quot; and an iteration of Spring in Javascript.<p>I&#x27;m being a bit snide here since the Java community had to endure years of <i>uninformed</i> ridicule regarding the meta gymanstics required for component oriented programming.<p>I remember talking to a react or backbone (or whatever, it was the current &#x27;thing&#x27;) developer 1.5 years ago and giving a brief history of GUI toolkit frameworks before browsers. I swear, his eyes lit up like I was spilling occult secrets. Back to the future, par per course in this forgetful field.<p>[p.s. it&#x27;s not just the browser side people. Many years ago I mentioned in a Go community group to take a look at the Servlet architecture (circa ~2000) and its minimal but powerful abstractions. I think it was yesterday that we had people cheering &quot;context&quot; in Go 1.8.]
评论 #13377276 未加载
评论 #13374971 未加载
acemarke超过 8 年前
If anyone&#x27;s interested in learning React, I keep a big list of links to high-quality tutorials and articles on React, Redux, and related topics, at <a href="https:&#x2F;&#x2F;github.com&#x2F;markerikson&#x2F;react-redux-links" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;markerikson&#x2F;react-redux-links</a> . Specifically intended to be a great starting point for anyone trying to learn the ecosystem, as well as a solid source of good info on more advanced topics.
IgorPartola超过 8 年前
Smart and dumb components are one of the reasons why I quickly jumped ship to Vue. It&#x27;s too complicated and the starter apps make it worse. You get four level deep directory structures where each dir contains a single file of like five lines. It feels like knitting a castle.<p>Vue certainly has its own cruft, but it&#x27;s at least somewhat simpler when it comes to how components compose.
评论 #13375026 未加载
评论 #13375647 未加载
评论 #13376589 未加载
评论 #13377066 未加载
评论 #13375580 未加载
whatever_dude超过 8 年前
Subjective content opinions aside, this article is short and to the point. Well written.
k__超过 8 年前
These and 3rd party integration, I think.<p>HOC aren&#x27;t to bad to know either, if you want to end up with maintainable code.<p>shameless plug: <a href="https:&#x2F;&#x2F;github.com&#x2F;kay-is&#x2F;react-from-zero" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;kay-is&#x2F;react-from-zero</a>
tyingq超过 8 年前
Would you put &quot;filling in the rest of the stack&quot; as another finger of death? There doesn&#x27;t seem to be good consensus on that bit.
评论 #13373793 未加载
rquestion超过 8 年前
React best practises question - At what level should event handlers be installed? At lowest level components or the highest level?<p>How are events in React supposed to be propagated from low level components to their parent components when the low level components should not have any knowledge of their parents?
评论 #13375035 未加载
评论 #13374967 未加载
评论 #13375012 未加载
tonyneel923超过 8 年前
Good article besides the nonsense about some of the react lifecycles being voodoo. You will use it if you program extensively.
drivingmenuts超过 8 年前
&gt; the component approach means that both HTML and JavaScript code live in the same file.<p>Something about this makes me want to facepalm and wonder why we bothered with separation of concerns, when React just undoes all of that.
评论 #13381239 未加载