It may seem like a bold suggestion that we as web developers can choose the wrong tools for the job because we tend to be swayed by appeals to popularity or authority, but simple statistics imply just that. For example, React (https://reactjs.org/) is a JavaScript framework that emphasizes componentization and simplified state management. It enjoys strong advocacy from a vocal and dedicated userbase within the developer community.
Despite React’s apparent popularity, however, The HTTP Archive observed in 2020 that React only accounted for 4% of all libraries in use across the 7.56 million origins it analyzed (https://almanac.httparchive.org/en/2020/javascript#libraries).
For context, The State of JS 2020 Survey (https://2020.stateofjs.com/en-US/), which surveyed roughly 23,765 respondents, offers the following statistics:
- 70.8% of respondents identified as white.
- 91.1% identified as male, whereas 5.8% identified as female and 0.9% identified as non-binary/third gender.
- 97.6% assessed their proficiency in JavaScript at either an intermediate (22.7%), advanced (22.3%), or expert level (52.6%). Just 2.3% self-reported their proficiency at a beginner level.
- 72.5% of respondents reported an 87.5% satisfaction rate with React.
The juxtaposition of The HTTP Archive’s analysis and The State of JS 2020 Survey results suggest that a disproportionately small—yet exceedingly vocal minority—of white male developers advocate strongly for React, and by extension, a development experience that favors thick client/thin server architectures which are given to poor performance in adverse conditions. Such conditions are less likely to be experienced by white male developers themselves, therefore reaffirming and reflecting their own biases in their work.
White male here with a slight disgust towards React and in particular its toxic community here.
Although I agree with the sentiment, and React-fanboyism is definitely a problem, I also think it’s easy to misinterpret the data and arrive at skewed conclusions.
Of the >7 million sites in the dataset, I highly doubt all of them are relatively new. In other words, I presume many sites predate React. To get a better perspective, we should only consider sites published after React gained popularity. I suspect we’ll see similar results; the React community is more vocal than it actually being used, but odds are the library will account for more than 4%.
Edit: English