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

ฟีเจอร์

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.

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

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

1

98.7%
9,907
2

98.7%
11,063
3

97.5%
12,637
4

93%
5.5%
11,029
5

90.6%
7.9%
11,073
6

86.1%
11.6%
11,033
7

85.4%
11.1%
3.5%
12,766
8

85.3%
11.6%
3.2%
11,090
9

73.4%
20.5%
6.1%
12,584
10

68.3%
19.5%
12.3%
12,632

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.

Among the most common React APIs, forwardRef was by far the one generating the most pain for developers, with memo a close second. Thankfully the React team is in the process of rolling out better alternatives to both.

0%
13%
25%
38%
50%
63%
1

2

3

Context API

คำตอบที่ตรงกับ “Context API” 331
4

5

Excessive complexity

6

7

State management

8

Performance

9

Double rendering

10

11

คำตอบอื่นๆ

คำตอบที่ตรงกับ “คำตอบอื่นๆ” 986
0%
13%
25%
38%
50%
63%
% ของผู้ตอบคำถาม
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 2023 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

Unsurpringly, useEffect and useCallback were cited as the most problematice React hooks, in large part due to the management of dependency arrays.

0%
14%
27%
41%
55%
68%
1

2

Dependency Arrays

3

4

5

State management

6

Excessive complexity

7

8

9

Excessive rerendering

10

11

คำตอบอื่นๆ

คำตอบที่ตรงกับ “คำตอบอื่นๆ” 771
0%
14%
27%
41%
55%
68%
% ของผู้ตอบคำถาม
What pain points have you encountered with hooks?
แบบอิสระ

While React's ability to keep evolving and stay relevant over time is one of its best assets, it also comes at a cost and new APIs such as Server Components can definitely be tough to adopt.

0%
18%
37%
55%
73%
92%
1

2

Excessive complexity

3

Next.js issues

4

5

form_issues

6

7

8

9

Lack of documentation

10

11

คำตอบอื่นๆ

คำตอบที่ตรงกับ “คำตอบอื่นๆ” 394
0%
18%
37%
55%
73%
92%
% ของผู้ตอบคำถาม
What pain points have you encountered related to new APIs?
แบบอิสระ

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

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

0%
9%
19%
28%
37%
46%
1

1,777
2

1,720
3

1,591
4

1,387
5

1,381
6

1,279
7

1,256
8

1,238
9

1,231
10

1,098
0%
9%
19%
28%
37%
46%
% ของผู้ตอบคำถาม
จำนวนครั้งที่แต่ละรายการถูกเพิ่มลงในรายการสำหรับการอ่านของผู้ตอบแบบสอบถาม ซึ่งเป็นฟีเจอร์ที่ให้ผู้คนได้เรียนรู้เพิ่มเติมเกี่ยวกับหัวข้อเฉพาะระหว่างการทำแบบสอบถาม

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

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.
ขอบคุณพันธมิตรของเราที่สนับสนุนเรา! เรียนรู้เพิ่มเติม