ข้ามไปยังเนื้อหา

ฟีเจอร์

We asked respondents about their thoughts on 28 distinct features, from omnipresent hooks such as useState, to more niche APIs like useDeferredValue. Be sure to try and sort by “sentiment”!

This chart recaps all of the survey's feature questions. The main bars represent a respondent's experience; and they are then further subdivided according to that respondent's sentiment. You can change the grouping to alternate between both.

Worth highlighting this year: createPortal, while only used by 46.4% of respondents, was the fifth most loved feature. The Taint API on the other hand was both the least used and most unknown feature – which make sense since it's still experimental.

On the opposite end of the spectrum, useState was not only the most used feature but also the most beloved with only 1.26% of negative sentiment, which goes to show that simple solutions will always have their place.

จัดกลุ่มตาม:

จัดเรียงตาม:

1

98.9%
6,927
2

97.8%
6,949
3

96.7%
7,711
4

93.2%
5.1%
6,927
5

92.3%
6%
6,944
6

88.4%
9.4%
6,936
7

87.8%
8.8%
6,959
8

85.4%
9.4%
7,774
9

75.8%
18.4%
4.7%
7,682
10

73%
17.4%
8.4%
7,710

Experience

  • Used it: Respondents who have used an item.
  • Heard of it: Respondents who have heard about an item, but haven't used it.
  • Never heard of it: Respondents who have never heard about an item.

Sentiment

  • Positive: Respondents who are interested in learning more about a technology; or are willing to use it again.
  • Neutral: Responents who did not indicate any sentiment about a technology.
  • Negative: Respondents who are not interested in learning more about a technology; or have used it and had a negative experience.

Just like last year, forwardRef and memo were the top pain points among the most common React APIs. With React 19 now out and promising to alleviate both issues, it'll be interesting to see what this chart looks like next year.

0%
20%
40%
60%
80%
100%
1

2

3

4

Context API

5

Excessive complexity

6

7

Excessive re-renderings

8

9

Testing

10

Error handling

11

คำตอบอื่นๆ

คำตอบที่ตรงกับ “คำตอบอื่นๆ” 684
0%
20%
40%
60%
80%
100%
% ของผู้ตอบคำถาม
What pain points have you encountered related to the APIs mentioned above?
แบบอิสระ
We asked members of the React community to share their “pick of the year”

My 2024 Pick: Zustand

Simple, elegant, extensible state management that "just works" (tm). Nowadays, you might not need state management, but if you do, Zustand is a great place to start.
We asked members of the React community to share their “pick of the year”

Jack Herrington

Principal Engineer and YouTuber

useEffect is still the most problematic React hook, in large part due to having to manually manage dependency arrays.

0%
20%
40%
60%
80%
100%
1

2

Dependency arrays

3

4

5

Excessive complexity

6

Excessive rerendering

7

State management

8

useLayoutEffect

9

10

11

คำตอบอื่นๆ

คำตอบที่ตรงกับ “คำตอบอื่นๆ” 528
0%
20%
40%
60%
80%
100%
% ของผู้ตอบคำถาม
What pain points have you encountered with hooks?
แบบอิสระ

React Server Components and overall complexity are still the top pain points when it comes to taking advantage of React's newer features.

0%
20%
40%
60%
80%
100%
1

2

Excessive complexity

3

Form issues

4

Next.js issues

5

Frontend and backend integration

6

7

8

9

SSR

10

11

คำตอบอื่นๆ

คำตอบที่ตรงกับ “คำตอบอื่นๆ” 284
0%
20%
40%
60%
80%
100%
% ของผู้ตอบคำถาม
What pain points have you encountered related to new APIs?
แบบอิสระ

รายการสำหรับการอ่าน

25% of respondents added at items to their reading list while taking the survey in order to learn more about them later. Here is a breakdown of their picks.

0%
20%
40%
60%
80%
100%
1

777
2

674
3

621
4

619
5

612
6

584
7

551
8

524
9

504
10

502
0%
20%
40%
60%
80%
100%
% ของผู้ตอบคำถาม
จำนวนครั้งที่แต่ละรายการถูกเพิ่มลงในรายการสำหรับการอ่านของผู้ตอบแบบสอบถาม ซึ่งเป็นฟีเจอร์ที่ให้ผู้คนได้เรียนรู้เพิ่มเติมเกี่ยวกับหัวข้อเฉพาะระหว่างการทำแบบสอบถาม

แหล่งข้อมูลที่แนะนำ

Be Productive with React.js, Today's Most Popular Framework
Brian Holt
SQLite Cloud

Be Productive with React.js, Today's Most Popular Framework

Gain experience building, testing, and maintaining high-performance client and server-side React applications.
A Tour of JavaScript & React Patterns
Lydia Hallie

A Tour of JavaScript & React Patterns

You’ll get an overview of more traditional design patterns with JavaScript, such as the Singleton and Proxy patterns. Then see React patterns such as the Hooks and Higher Order Component patterns.
ขอบคุณพันธมิตรของเราที่สนับสนุนเรา! เรียนรู้เพิ่มเติม