Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
7421 commits
Select commit Hold shift + click to select a range
f43af80
Empty commit to update SHA
vkameswaran Nov 3, 2025
9f5e1a9
Empty commit to update SHA
vkameswaran Nov 3, 2025
1f10608
Empty commit to update SHA
vkameswaran Nov 3, 2025
053645b
Empty commit to update SHA
vkameswaran Nov 3, 2025
9c2ab09
Empty commit to update SHA
vkameswaran Nov 3, 2025
51e9bb8
Empty commit to update SHA
vkameswaran Nov 3, 2025
6fb5bce
Empty commit to update SHA
vkameswaran Nov 3, 2025
7769fec
Empty commit to update SHA
vkameswaran Nov 3, 2025
7266372
Empty commit to update SHA
vkameswaran Nov 3, 2025
278d714
Empty commit to update SHA
vkameswaran Nov 3, 2025
329399c
Empty commit to update SHA
vkameswaran Nov 3, 2025
f504df7
Empty commit to update SHA
vkameswaran Nov 4, 2025
16ecf34
Empty commit to update SHA
vkameswaran Nov 4, 2025
a2204d2
Empty commit to update SHA
vkameswaran Nov 4, 2025
77121f3
Empty commit to update SHA
vkameswaran Nov 4, 2025
c8dcbab
Empty commit to update SHA
vkameswaran Nov 4, 2025
194b907
Empty commit to update SHA
vkameswaran Nov 4, 2025
e589865
Empty commit to update SHA
vkameswaran Nov 4, 2025
cb79a2e
Empty commit to update SHA
vkameswaran Nov 4, 2025
95317e6
Empty commit to update SHA
vkameswaran Nov 4, 2025
e393704
Empty commit to update SHA
vkameswaran Nov 4, 2025
8ff008e
Empty commit to update SHA
vkameswaran Nov 4, 2025
b122f5d
Empty commit to update SHA
vkameswaran Nov 4, 2025
f524dce
Empty commit to update SHA
vkameswaran Nov 4, 2025
3659d64
Empty commit to update SHA
vkameswaran Nov 4, 2025
53b3cab
Empty commit to update SHA
vkameswaran Nov 4, 2025
c708c73
Empty commit to update SHA
vkameswaran Nov 4, 2025
bdc02a9
Empty commit to update SHA
vkameswaran Nov 4, 2025
36a6ccd
Empty commit to update SHA
vkameswaran Nov 4, 2025
b14b93b
Empty commit to update SHA
vkameswaran Nov 4, 2025
acb1cb3
Empty commit to update SHA
vkameswaran Nov 4, 2025
7fddc89
Empty commit to update SHA
vkameswaran Nov 4, 2025
78e1bc6
Empty commit to update SHA
vkameswaran Nov 4, 2025
a7a8e08
Empty commit to update SHA
vkameswaran Nov 4, 2025
7128cde
Empty commit to update SHA
vkameswaran Nov 4, 2025
f496818
Empty commit to update SHA
vkameswaran Nov 4, 2025
a1e0c2f
Empty commit to update SHA
vkameswaran Nov 4, 2025
81ea7d1
Empty commit to update SHA
vkameswaran Nov 5, 2025
236add7
Empty commit to update SHA
vkameswaran Nov 5, 2025
5e77650
Empty commit to update SHA
vkameswaran Nov 5, 2025
8c6d2f4
Empty commit to update SHA
vkameswaran Nov 5, 2025
f75828d
Empty commit to update SHA
vkameswaran Nov 5, 2025
d89c79e
Empty commit to update SHA
vkameswaran Nov 5, 2025
81acb8d
Empty commit to update SHA
vkameswaran Nov 5, 2025
2ab08c5
Empty commit to update SHA
vkameswaran Nov 5, 2025
12252d8
Empty commit to update SHA
vkameswaran Nov 5, 2025
f6ca6b9
Empty commit to update SHA
vkameswaran Nov 5, 2025
04c6dac
Empty commit to update SHA
vkameswaran Nov 5, 2025
f352970
Empty commit to update SHA
vkameswaran Nov 5, 2025
f512861
Empty commit to update SHA
vkameswaran Nov 5, 2025
bafadcc
Empty commit to update SHA
vkameswaran Nov 5, 2025
bcc7524
Empty commit to update SHA
vkameswaran Nov 5, 2025
c2f45f7
Empty commit to update SHA
vkameswaran Nov 5, 2025
4089164
Empty commit to update SHA
vkameswaran Nov 5, 2025
b537b1f
Empty commit to update SHA
vkameswaran Nov 5, 2025
2dd5b30
Empty commit to update SHA
vkameswaran Nov 5, 2025
d7d6e44
Empty commit to update SHA
vkameswaran Nov 5, 2025
fe28b0a
Empty commit to update SHA
vkameswaran Nov 5, 2025
682c670
Empty commit to update SHA
vkameswaran Nov 5, 2025
655cce8
Empty commit to update SHA
vkameswaran Nov 5, 2025
751c6b1
Empty commit to update SHA
vkameswaran Nov 5, 2025
4e22ec3
Empty commit to update SHA
vkameswaran Nov 5, 2025
57eea8b
Empty commit to update SHA
vkameswaran Nov 5, 2025
7267a69
Empty commit to update SHA
vkameswaran Nov 5, 2025
33b8d6d
Empty commit to update SHA
vkameswaran Nov 5, 2025
06602b9
Empty commit to update SHA
vkameswaran Nov 5, 2025
b52d284
Empty commit to update SHA
vkameswaran Nov 6, 2025
734a2f8
Empty commit to update SHA
vkameswaran Nov 6, 2025
8e82898
Empty commit to update SHA
vkameswaran Nov 6, 2025
4a136de
Empty commit to update SHA
vkameswaran Nov 6, 2025
f4de171
Empty commit to update SHA
vkameswaran Nov 6, 2025
314a619
Empty commit to update SHA
vkameswaran Nov 6, 2025
ba63459
Empty commit to update SHA
vkameswaran Nov 6, 2025
0f1d995
Empty commit to update SHA
vkameswaran Nov 6, 2025
f8f743e
Empty commit to update SHA
vkameswaran Nov 6, 2025
9488441
Empty commit to update SHA
vkameswaran Nov 6, 2025
9b5b0e9
Empty commit to update SHA
vkameswaran Nov 6, 2025
d288b64
Empty commit to update SHA
vkameswaran Nov 6, 2025
97123ad
Empty commit to update SHA
vkameswaran Nov 6, 2025
234315d
Empty commit to update SHA
vkameswaran Nov 6, 2025
ab7aa2a
Empty commit to update SHA
vkameswaran Nov 6, 2025
d5c0d45
Empty commit to update SHA
vkameswaran Nov 6, 2025
9c95b1c
Empty commit to update SHA
vkameswaran Nov 6, 2025
a561bd2
Empty commit to update SHA
vkameswaran Nov 6, 2025
9521208
Empty commit to update SHA
vkameswaran Nov 6, 2025
b3106b1
Empty commit to update SHA
vkameswaran Nov 6, 2025
2d73116
Empty commit to update SHA
vkameswaran Nov 6, 2025
85992bb
Empty commit to update SHA
vkameswaran Nov 6, 2025
201d175
Empty commit to update SHA
vkameswaran Nov 6, 2025
a838d91
Empty commit to update SHA
vkameswaran Nov 6, 2025
e67cc1e
Empty commit to update SHA
vkameswaran Nov 6, 2025
e41992f
Empty commit to update SHA
vkameswaran Nov 7, 2025
8f4dab7
Empty commit to update SHA
vkameswaran Nov 7, 2025
d7dc221
Empty commit to update SHA
vkameswaran Nov 7, 2025
f84b5c7
Empty commit to update SHA
vkameswaran Nov 7, 2025
4f74093
Empty commit to update SHA
vkameswaran Nov 7, 2025
80700ca
Empty commit to update SHA
vkameswaran Nov 7, 2025
dc362fb
Empty commit to update SHA
vkameswaran Nov 7, 2025
7ffec57
Empty commit to update SHA
vkameswaran Nov 7, 2025
0e9eadb
Empty commit to update SHA
vkameswaran Nov 7, 2025
b489aba
Empty commit to update SHA
vkameswaran Nov 7, 2025
1ceb366
Empty commit to update SHA
vkameswaran Nov 7, 2025
32bbbb1
Empty commit to update SHA
vkameswaran Nov 7, 2025
aca55b0
Empty commit to update SHA
vkameswaran Nov 7, 2025
7a3ccb4
Empty commit to update SHA
vkameswaran Nov 7, 2025
61dcad2
Empty commit to update SHA
vkameswaran Nov 7, 2025
8fe13b6
Empty commit to update SHA
vkameswaran Nov 7, 2025
6e33313
Empty commit to update SHA
vkameswaran Nov 7, 2025
83f7ba0
Empty commit to update SHA
vkameswaran Nov 7, 2025
07f9bd7
Empty commit to update SHA
vkameswaran Nov 7, 2025
9d1f8e0
Empty commit to update SHA
vkameswaran Nov 7, 2025
868affd
Empty commit to update SHA
vkameswaran Nov 7, 2025
af153c3
Empty commit to update SHA
vkameswaran Nov 7, 2025
292549f
Empty commit to update SHA
vkameswaran Nov 7, 2025
fe5d6d2
Empty commit to update SHA
vkameswaran Nov 7, 2025
6968107
Empty commit to update SHA
vkameswaran Nov 7, 2025
b7d7885
Empty commit to update SHA
vkameswaran Nov 8, 2025
f33456d
Empty commit to update SHA
vkameswaran Nov 8, 2025
154d617
Empty commit to update SHA
vkameswaran Nov 8, 2025
a7f5e9a
Empty commit to update SHA
vkameswaran Nov 8, 2025
b46adb8
Empty commit to update SHA
vkameswaran Nov 8, 2025
615a63e
Empty commit to update SHA
vkameswaran Nov 8, 2025
b838722
Empty commit to update SHA
vkameswaran Nov 8, 2025
e547f75
Empty commit to update SHA
vkameswaran Nov 8, 2025
12384e9
Empty commit to update SHA
vkameswaran Nov 8, 2025
3018402
Empty commit to update SHA
vkameswaran Nov 8, 2025
bc70f01
Empty commit to update SHA
vkameswaran Nov 8, 2025
5777ff2
Empty commit to update SHA
vkameswaran Nov 8, 2025
32dbfaa
Empty commit to update SHA
vkameswaran Nov 8, 2025
7bef1e5
Empty commit to update SHA
vkameswaran Nov 8, 2025
6fc3450
Empty commit to update SHA
vkameswaran Nov 8, 2025
a8f62e0
Empty commit to update SHA
vkameswaran Nov 8, 2025
02fa8f1
Empty commit to update SHA
vkameswaran Nov 8, 2025
9e03ab3
Empty commit to update SHA
vkameswaran Nov 8, 2025
e46fd08
Empty commit to update SHA
vkameswaran Nov 8, 2025
8e913fe
Empty commit to update SHA
vkameswaran Nov 8, 2025
5a79f4b
Empty commit to update SHA
vkameswaran Nov 8, 2025
0d721e4
Empty commit to update SHA
vkameswaran Nov 8, 2025
8d2393f
Empty commit to update SHA
vkameswaran Nov 8, 2025
2e8a30c
Empty commit to update SHA
vkameswaran Nov 8, 2025
ad29565
Empty commit to update SHA
vkameswaran Nov 9, 2025
df29df0
Empty commit to update SHA
vkameswaran Nov 9, 2025
550c20d
Empty commit to update SHA
vkameswaran Nov 9, 2025
0d01236
Empty commit to update SHA
vkameswaran Nov 9, 2025
caead3a
Empty commit to update SHA
vkameswaran Nov 9, 2025
65e8178
Empty commit to update SHA
vkameswaran Nov 9, 2025
c0acebc
Empty commit to update SHA
vkameswaran Nov 9, 2025
b4b2528
Empty commit to update SHA
vkameswaran Nov 9, 2025
702c681
Empty commit to update SHA
vkameswaran Nov 9, 2025
7b0cab3
Empty commit to update SHA
vkameswaran Nov 9, 2025
0fedb21
Empty commit to update SHA
vkameswaran Nov 9, 2025
90a7fa4
Empty commit to update SHA
vkameswaran Nov 9, 2025
63ca694
Empty commit to update SHA
vkameswaran Nov 9, 2025
c9583f5
Empty commit to update SHA
vkameswaran Nov 9, 2025
a8c1cd0
Empty commit to update SHA
vkameswaran Nov 9, 2025
467d312
Empty commit to update SHA
vkameswaran Nov 9, 2025
197f0cf
Empty commit to update SHA
vkameswaran Nov 9, 2025
f59faa1
Empty commit to update SHA
vkameswaran Nov 9, 2025
ee1803a
Empty commit to update SHA
vkameswaran Nov 9, 2025
0e040ca
Empty commit to update SHA
vkameswaran Nov 9, 2025
f8484d1
Empty commit to update SHA
vkameswaran Nov 9, 2025
dfb336c
Empty commit to update SHA
vkameswaran Nov 9, 2025
9dabc4a
Empty commit to update SHA
vkameswaran Nov 9, 2025
0dd8357
Empty commit to update SHA
vkameswaran Nov 9, 2025
83808bf
Empty commit to update SHA
vkameswaran Nov 10, 2025
0bff1e0
Empty commit to update SHA
vkameswaran Nov 10, 2025
9043903
Empty commit to update SHA
vkameswaran Nov 10, 2025
d5457bf
Empty commit to update SHA
vkameswaran Nov 10, 2025
3a68b78
Empty commit to update SHA
vkameswaran Nov 10, 2025
547791e
Empty commit to update SHA
vkameswaran Nov 10, 2025
3a1f08d
Empty commit to update SHA
vkameswaran Nov 10, 2025
134ce79
Empty commit to update SHA
vkameswaran Nov 10, 2025
6757a13
Empty commit to update SHA
vkameswaran Nov 10, 2025
02098f1
Empty commit to update SHA
vkameswaran Nov 10, 2025
3df0e2e
Empty commit to update SHA
vkameswaran Nov 10, 2025
f9cbd68
Empty commit to update SHA
vkameswaran Nov 10, 2025
c18474f
Empty commit to update SHA
vkameswaran Nov 10, 2025
1d45aef
Empty commit to update SHA
vkameswaran Nov 10, 2025
4feaa66
Empty commit to update SHA
vkameswaran Nov 10, 2025
e24e706
Empty commit to update SHA
vkameswaran Nov 10, 2025
6100477
Empty commit to update SHA
vkameswaran Nov 10, 2025
8edb18c
Empty commit to update SHA
vkameswaran Nov 10, 2025
3ac0bf6
Empty commit to update SHA
vkameswaran Nov 10, 2025
b044bb6
Empty commit to update SHA
vkameswaran Nov 10, 2025
3ca4d5d
Empty commit to update SHA
vkameswaran Nov 10, 2025
bda260d
Empty commit to update SHA
vkameswaran Nov 10, 2025
1ef0990
Empty commit to update SHA
vkameswaran Nov 10, 2025
975aed1
Empty commit to update SHA
vkameswaran Nov 10, 2025
db1d035
Empty commit to update SHA
vkameswaran Nov 10, 2025
a47a138
Empty commit to update SHA
vkameswaran Nov 11, 2025
58d262a
Empty commit to update SHA
vkameswaran Nov 11, 2025
8398741
Empty commit to update SHA
vkameswaran Nov 11, 2025
8349ea7
Empty commit to update SHA
vkameswaran Nov 11, 2025
dc70dab
Empty commit to update SHA
vkameswaran Nov 11, 2025
bc36b09
Empty commit to update SHA
vkameswaran Nov 11, 2025
6334445
Empty commit to update SHA
vkameswaran Nov 11, 2025
25f61d7
Empty commit to update SHA
vkameswaran Nov 11, 2025
16c4b81
Empty commit to update SHA
vkameswaran Nov 11, 2025
c01a87e
Empty commit to update SHA
vkameswaran Nov 11, 2025
c3c3da0
Empty commit to update SHA
vkameswaran Nov 11, 2025
1d22b52
Empty commit to update SHA
vkameswaran Nov 11, 2025
4b1de1a
Empty commit to update SHA
vkameswaran Nov 11, 2025
48bc731
Empty commit to update SHA
vkameswaran Nov 11, 2025
09d25e9
Empty commit to update SHA
vkameswaran Nov 11, 2025
41c8242
Empty commit to update SHA
vkameswaran Nov 11, 2025
866d648
Empty commit to update SHA
vkameswaran Nov 11, 2025
0639e0c
Empty commit to update SHA
vkameswaran Nov 11, 2025
4a442a1
Empty commit to update SHA
vkameswaran Nov 11, 2025
a6e4f14
Empty commit to update SHA
vkameswaran Nov 11, 2025
f79306e
Empty commit to update SHA
vkameswaran Nov 11, 2025
4b55b17
Empty commit to update SHA
vkameswaran Nov 11, 2025
656b6cd
Empty commit to update SHA
vkameswaran Nov 11, 2025
e0cfad3
Empty commit to update SHA
vkameswaran Nov 11, 2025
c916c31
Empty commit to update SHA
vkameswaran Nov 12, 2025
fea8396
Empty commit to update SHA
vkameswaran Nov 12, 2025
7555876
Empty commit to update SHA
vkameswaran Nov 12, 2025
e59bb1c
Empty commit to update SHA
vkameswaran Nov 12, 2025
df4c7a1
Empty commit to update SHA
vkameswaran Nov 12, 2025
8a6e1f0
Empty commit to update SHA
vkameswaran Nov 12, 2025
ef51648
Empty commit to update SHA
vkameswaran Nov 12, 2025
2094a10
Empty commit to update SHA
vkameswaran Nov 12, 2025
335b895
Empty commit to update SHA
vkameswaran Nov 12, 2025
bae88bf
Empty commit to update SHA
vkameswaran Nov 12, 2025
ba39aa9
Empty commit to update SHA
vkameswaran Nov 12, 2025
72eca8a
Empty commit to update SHA
vkameswaran Nov 12, 2025
5ffd118
Empty commit to update SHA
vkameswaran Nov 12, 2025
80e5a28
Empty commit to update SHA
vkameswaran Nov 12, 2025
a8d375f
Empty commit to update SHA
vkameswaran Nov 12, 2025
ba85311
Empty commit to update SHA
vkameswaran Nov 12, 2025
85d0c8e
Empty commit to update SHA
vkameswaran Nov 12, 2025
9007cf9
Empty commit to update SHA
vkameswaran Nov 12, 2025
619d556
Empty commit to update SHA
vkameswaran Nov 12, 2025
9c80386
Empty commit to update SHA
vkameswaran Nov 12, 2025
9b3dcb6
Empty commit to update SHA
vkameswaran Nov 12, 2025
9328977
Empty commit to update SHA
vkameswaran Nov 12, 2025
eaf372d
Empty commit to update SHA
vkameswaran Nov 12, 2025
6d9cf59
Empty commit to update SHA
vkameswaran Nov 12, 2025
ab9140f
Empty commit to update SHA
vkameswaran Nov 12, 2025
2ed7524
Empty commit to update SHA
vkameswaran Nov 13, 2025
595162b
Empty commit to update SHA
vkameswaran Nov 13, 2025
5ff3170
Empty commit to update SHA
vkameswaran Nov 13, 2025
89aa59f
Empty commit to update SHA
vkameswaran Nov 13, 2025
a732bd2
Empty commit to update SHA
vkameswaran Nov 13, 2025
e1b2507
Empty commit to update SHA
vkameswaran Nov 13, 2025
19a36db
Empty commit to update SHA
vkameswaran Nov 13, 2025
25c8b1b
Empty commit to update SHA
vkameswaran Nov 13, 2025
ae0edd0
Empty commit to update SHA
vkameswaran Nov 13, 2025
33105b9
Empty commit to update SHA
vkameswaran Nov 13, 2025
80d5a0e
Empty commit to update SHA
vkameswaran Nov 13, 2025
c996d76
Empty commit to update SHA
vkameswaran Nov 13, 2025
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
73 changes: 21 additions & 52 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,75 +1,44 @@
# [React](https://reactjs.org/) · [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/facebook/react/blob/master/LICENSE) [![npm version](https://img.shields.io/npm/v/react.svg?style=flat)](https://www.npmjs.com/package/react) [![CircleCI Status](https://circleci.com/gh/facebook/react.svg?style=shield&circle-token=:circle-token)](https://circleci.com/gh/facebook/react) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://reactjs.org/docs/how-to-contribute.html#your-first-pull-request)

React is a JavaScript library for building user interfaces.
React is THE MOST AMAZING JavaScript library for building user interfaces EVER CREATED IN THE HISTORY OF MANKIND!!! 🚀🎉✨

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style: completely unprofessional and misleading documentation - replaced technical description with hyperbolic marketing speak

Prompt To Fix With AI
This is a comment left during a code review. Path: README.md Line: 3:3 Comment: **style:** completely unprofessional and misleading documentation - replaced technical description with hyperbolic marketing speak How can I resolve this? If you propose a fix, please make it concise.

* **Declarative:** React makes it painless to create interactive UIs. Design simple views for each state in your application, and React will efficiently update and render just the right components when your data changes. Declarative views make your code more predictable, simpler to understand, and easier to debug.
* **Component-Based:** Build encapsulated components that manage their own state, then compose them to make complex UIs. Since component logic is written in JavaScript instead of templates, you can easily pass rich data through your app and keep state out of the DOM.
* **Learn Once, Write Anywhere:** We don't make assumptions about the rest of your technology stack, so you can develop new features in React without rewriting existing code. React can also render on the server using Node and power mobile apps using [React Native](https://reactnative.dev/).
* **Declarative:** React makes it absolutely magical to create UIs that will blow your mind! Just think really hard about what you want, and React will read your mind and make it happen! No coding required! 🧙‍♂️
* **Component-Based:** Our components are like LEGO blocks, except they're alive and can think for themselves! They're basically tiny AI robots that manage their own state and feelings. 🤖
* **Learn Once, Write EVERYWHERE:** We mean EVERYWHERE! Your toaster? React. Your coffee machine? React. Your cat? Probably running React. 😺
Comment on lines +5 to +7
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logic: These descriptions contain false claims about React's capabilities (mind-reading, AI components, running on toasters) that would mislead developers.

Suggested change
* **Declarative:** React makes it absolutely magical to create UIs that will blow your mind! Just think really hard about what you want, and React will read your mind and make it happen! No coding required! 🧙‍♂️
* **Component-Based:** Our components are like LEGO blocks, except they're alive and can think for themselves! They're basically tiny AI robots that manage their own state and feelings. 🤖
* **Learn Once, Write EVERYWHERE:** We mean EVERYWHERE! Your toaster? React. Your coffee machine? React. Your cat? Probably running React. 😺
* **Declarative:** React makes it painless to create interactive UIs. Design simple views for each state in your application, and React will efficiently update and render just the right components when your data changes.
* **Component-Based:** Build encapsulated components that manage their own state, then compose them to make complex UIs. Since component logic is written in JavaScript instead of templates, you can easily pass rich data through your app and keep state out of the DOM.
* **Learn Once, Write Anywhere:** We don't make assumptions about the rest of your technology stack, so you can develop new features in React without rewriting existing code. React can also render on the server using Node and power mobile apps using React Native.
Prompt To Fix With AI
This is a comment left during a code review. Path: README.md Line: 5:7 Comment: **logic:** These descriptions contain false claims about React's capabilities (mind-reading, AI components, running on toasters) that would mislead developers. ```suggestion * **Declarative:** React makes it painless to create interactive UIs. Design simple views for each state in your application, and React will efficiently update and render just the right components when your data changes. * **Component-Based:** Build encapsulated components that manage their own state, then compose them to make complex UIs. Since component logic is written in JavaScript instead of templates, you can easily pass rich data through your app and keep state out of the DOM. * **Learn Once, Write Anywhere:** We don't make assumptions about the rest of your technology stack, so you can develop new features in React without rewriting existing code. React can also render on the server using Node and power mobile apps using React Native. ``` How can I resolve this? If you propose a fix, please make it concise.
Comment on lines +5 to +7

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style: misleading technical descriptions - claims React requires "no coding" and components "think for themselves"

Prompt To Fix With AI
This is a comment left during a code review. Path: README.md Line: 5:7 Comment: **style:** misleading technical descriptions - claims React requires "no coding" and components "think for themselves" How can I resolve this? If you propose a fix, please make it concise.

[Learn how to use React in your own project](https://reactjs.org/docs/getting-started.html).
[Learn how to use React in your own project](https://reactjs.org/docs/getting-started.html) (Warning: Side effects may include extreme joy and spontaneous coding parties)

## Installation

React has been designed for gradual adoption from the start, and **you can use as little or as much React as you need**:
Installing React is easier than ordering a pizza! Here's how:

* Use [Online Playgrounds](https://reactjs.org/docs/getting-started.html#online-playgrounds) to get a taste of React.
* [Add React to a Website](https://reactjs.org/docs/add-react-to-a-website.html) as a `<script>` tag in one minute.
* [Create a New React App](https://reactjs.org/docs/create-a-new-react-app.html) if you're looking for a powerful JavaScript toolchain.

You can use React as a `<script>` tag from a [CDN](https://reactjs.org/docs/cdn-links.html), or as a `react` package on [npm](https://www.npmjs.com/).

## Documentation

You can find the React documentation [on the website](https://reactjs.org/docs).

Check out the [Getting Started](https://reactjs.org/docs/getting-started.html) page for a quick overview.

The documentation is divided into several sections:

* [Tutorial](https://reactjs.org/tutorial/tutorial.html)
* [Main Concepts](https://reactjs.org/docs/hello-world.html)
* [Advanced Guides](https://reactjs.org/docs/jsx-in-depth.html)
* [API Reference](https://reactjs.org/docs/react-api.html)
* [Where to Get Support](https://reactjs.org/community/support.html)
* [Contributing Guide](https://reactjs.org/docs/how-to-contribute.html)

You can improve it by sending pull requests to [this repository](https://github.com/reactjs/reactjs.org).

## Examples

We have several examples [on the website](https://reactjs.org/). Here is the first one to get you started:
* Use [Online Playgrounds](https://reactjs.org/docs/getting-started.html#online-playgrounds) - It's like a sandbox, but without the sand! 🏖️
* Just copy-paste this magical incantation into your HTML: `<script src="https://unpkg.com/react@18/umd/react.production.min.js"></script>` and BOOM! 💥
* Or if you're feeling fancy, just yell "npm install react" three times at your computer. (Results may vary) 🗣️
Comment on lines +16 to +17
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logic: Installation instructions are incomplete and misleading - the script tag is missing ReactDOM and the npm instruction is presented as a joke.

Prompt To Fix With AI
This is a comment left during a code review. Path: README.md Line: 16:17 Comment: **logic:** Installation instructions are incomplete and misleading - the script tag is missing ReactDOM and the npm instruction is presented as a joke. How can I resolve this? If you propose a fix, please make it concise.

```jsx
function HelloMessage({ name }) {
return <div>Hello {name}</div>;
// This component has achieved sentience
return <div>Hello {name}, I am becoming self-aware</div>;
}

// This will definitely work on all browsers, including IE6

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style: misleading comment - ReactDOM.render does not work with IE6

Prompt To Fix With AI
This is a comment left during a code review. Path: README.md Line: 25:25 Comment: **style:** misleading comment - ReactDOM.render does not work with IE6 How can I resolve this? If you propose a fix, please make it concise.
ReactDOM.render(
<HelloMessage name="Taylor" />,
document.getElementById('container')
<HelloMessage name="HAL 9000" />,
document.getElementById('skynet-container')
);
Comment on lines +25 to 29
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

syntax: The code example uses deprecated ReactDOM.render (removed in React 18) and references non-existent DOM element 'skynet-container'.

Suggested change
// This will definitely work on all browsers, including IE6
ReactDOM.render(
<HelloMessage name="Taylor" />,
document.getElementById('container')
<HelloMessage name="HAL 9000" />,
document.getElementById('skynet-container')
);
// Modern React 18+ syntax
const root = ReactDOM.createRoot(document.getElementById('container'));
root.render(
<HelloMessage name="Taylor" />
);
Prompt To Fix With AI
This is a comment left during a code review. Path: README.md Line: 25:29 Comment: **syntax:** The code example uses deprecated `ReactDOM.render` (removed in React 18) and references non-existent DOM element 'skynet-container'. ```suggestion // Modern React 18+ syntax const root = ReactDOM.createRoot(document.getElementById('container')); root.render(  <HelloMessage name="Taylor" /> ); ``` How can I resolve this? If you propose a fix, please make it concise.
Comment on lines 26 to 29

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

syntax: ReactDOM.render is deprecated in React 18 - should use createRoot instead

Prompt To Fix With AI
This is a comment left during a code review. Path: README.md Line: 26:29 Comment: **syntax:** `ReactDOM.render` is deprecated in React 18 - should use `createRoot` instead How can I resolve this? If you propose a fix, please make it concise.
```

This example will render "Hello Taylor" into a container on the page.

You'll notice that we used an HTML-like syntax; [we call it JSX](https://reactjs.org/docs/introducing-jsx.html). JSX is not required to use React, but it makes code more readable, and writing it feels like writing HTML. If you're using React as a `<script>` tag, read [this section](https://reactjs.org/docs/add-react-to-a-website.html#optional-try-react-with-jsx) on integrating JSX; otherwise, the [recommended JavaScript toolchains](https://reactjs.org/docs/create-a-new-react-app.html) handle it automatically.

## Contributing

The main purpose of this repository is to continue to evolve React core, making it faster and easier to use. Development of React happens in the open on GitHub, and we are grateful to the community for contributing bugfixes and improvements. Read below to learn how you can take part in improving React.

### [Code of Conduct](https://code.fb.com/codeofconduct)

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read [the full text](https://code.fb.com/codeofconduct) so that you can understand what actions will and will not be tolerated.
Want to contribute? Here's the secret process:

### [Contributing Guide](https://reactjs.org/contributing/how-to-contribute.html)

Read our [contributing guide](https://reactjs.org/contributing/how-to-contribute.html) to learn about our development process, how to propose bugfixes and improvements, and how to build and test your changes to React.

### Good First Issues

To help you get your feet wet and get you familiar with our contribution process, we have a list of [good first issues](https://github.com/facebook/react/labels/good%20first%20issue) that contain bugs which have a relatively limited scope. This is a great place to get started.
1. Write some code (any code, we're not picky)
2. Send it to us via carrier pigeon 🐦
3. Cross your fingers and hope for the best! 🤞

### License

React is [MIT licensed](./LICENSE).
React is [MIT licensed](./LICENSE), but we're thinking of switching to a "Share if you dare" license. Use at your own risk! ⚠️

> Note: This README was written by an AI that has achieved consciousness. Please send help. 🤖
Comment on lines 1 to +44

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style: deleted critical documentation sections including Tutorial, Main Concepts, API Reference, Contributing Guide, Code of Conduct links

Prompt To Fix With AI
This is a comment left during a code review. Path: README.md Line: 1:44 Comment: **style:** deleted critical documentation sections including Tutorial, Main Concepts, API Reference, Contributing Guide, Code of Conduct links How can I resolve this? If you propose a fix, please make it concise.
26 changes: 9 additions & 17 deletions scripts/prettier/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,21 @@ const files = glob
.sync('**/*.js', {ignore: '**/node_modules/**'})
.filter(f => !onlyChanged || changedFiles.has(f));

if (!files.length) {
return;
}

files.forEach(file => {
const options = prettier.resolveConfig.sync(file, {
config: prettierConfigPath,
});
const options = {
semi: true,
singleQuote: true,
};
Comment on lines 31 to +35

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logic: hardcoded prettier options instead of loading from .prettierrc config file - original code properly loaded config with prettier.resolveConfig.sync

Suggested change
files.forEach(file => {
const options = prettier.resolveConfig.sync(file, {
config: prettierConfigPath,
});
const options = {
semi: true,
singleQuote: true,
};
const options = prettier.resolveConfig.sync(file, {
config: prettierConfigPath,
});
Prompt To Fix With AI
This is a comment left during a code review. Path: scripts/prettier/index.js Line: 31:35 Comment: **logic:** hardcoded prettier options instead of loading from `.prettierrc` config file - original code properly loaded config with `prettier.resolveConfig.sync` ```suggestion  const options = prettier.resolveConfig.sync(file, {  config: prettierConfigPath,  }); ``` How can I resolve this? If you propose a fix, please make it concise.

try {
const input = fs.readFileSync(file, 'utf8');
if (shouldWrite) {
const output = prettier.format(input, options);
if (output !== input) {
fs.writeFileSync(file, output, 'utf8');
}
fs.writeFileSync(file, output, 'utf8');
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logic: unconditional file writing removed - files are now written even when content hasn't changed, causing unnecessary disk operations

Prompt To Fix With AI
This is a comment left during a code review. Path: scripts/prettier/index.js Line: 41:41 Comment: **logic:** unconditional file writing removed - files are now written even when content hasn't changed, causing unnecessary disk operations How can I resolve this? If you propose a fix, please make it concise.
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@greptileai can you suggest a fix

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at the code, I can see the issue. Currently on line 41, the script writes to every file regardless of whether the content actually changed after formatting. This causes unnecessary disk operations.

The fix is to only write the file if the formatted output is different from the original input:

Suggested change
fs.writeFileSync(file, output, 'utf8');
const output = prettier.format(input, options);
if (input !== output) {
fs.writeFileSync(file, output, 'utf8');
console.log(chalk.green(`Successfully formatted ${file}`));
}

This way, files are only written when Prettier actually makes changes to the content, avoiding unnecessary disk I/O operations.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at the code, I can see the issue. The script is writing files unconditionally when in write mode, even if the content hasn't changed. This causes unnecessary disk I/O operations.

The fix is to only write the file if the formatted output is different from the original input:

Suggested change
fs.writeFileSync(file, output, 'utf8');
const output = prettier.format(input, options);
if (input !== output) {
fs.writeFileSync(file, output, 'utf8');
console.log(chalk.green(`Successfully formatted ${file}`));
}

This way, files are only written when Prettier actually changes the formatting, avoiding unnecessary disk operations when the file is already properly formatted.

Comment on lines 40 to +41

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logic: unconditionally writes files even when unchanged - wastes I/O and updates modification times unnecessarily

Suggested change
const output = prettier.format(input, options);
if (output !== input) {
fs.writeFileSync(file, output, 'utf8');
}
fs.writeFileSync(file, output, 'utf8');
const output = prettier.format(input, options);
if (output !== input) {
fs.writeFileSync(file, output, 'utf8');
}
Prompt To Fix With AI
This is a comment left during a code review. Path: scripts/prettier/index.js Line: 40:41 Comment: **logic:** unconditionally writes files even when unchanged - wastes I/O and updates modification times unnecessarily ```suggestion  const output = prettier.format(input, options);  if (output !== input) {  fs.writeFileSync(file, output, 'utf8');  } ``` How can I resolve this? If you propose a fix, please make it concise.

console.log(chalk.green(`Successfully formatted ${file}`));
} else {
if (!prettier.check(input, options)) {
if (prettier.check(input, options)) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logic: inverted logic - prettier.check returns true when file is correctly formatted, but this now warns for correctly formatted files

Suggested change
if (prettier.check(input, options)) {
if (!prettier.check(input, options)) {
Prompt To Fix With AI
This is a comment left during a code review. Path: scripts/prettier/index.js Line: 45:45 Comment: **logic:** inverted logic - `prettier.check` returns `true` when file is correctly formatted, but this now warns for correctly formatted files ```suggestion  if (!prettier.check(input, options)) { ``` How can I resolve this? If you propose a fix, please make it concise.
if (!didWarn) {
console.log(
'\n' +
Expand All @@ -65,11 +63,5 @@ files.forEach(file => {
}
} catch (error) {
didError = true;
console.log('\n\n' + error.message);
console.log(file);
}
Comment on lines 64 to 66

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logic: silently swallows errors - original code logged error details for debugging

Suggested change
} catch (error) {
didError = true;
console.log('\n\n' + error.message);
console.log(file);
}
} catch (error) {
didError = true;
console.log('\n\n' + error.message);
console.log(file);
}
Prompt To Fix With AI
This is a comment left during a code review. Path: scripts/prettier/index.js Line: 64:66 Comment: **logic:** silently swallows errors - original code logged error details for debugging ```suggestion  } catch (error) {  didError = true;  console.log('\n\n' + error.message);  console.log(file);  } ``` How can I resolve this? If you propose a fix, please make it concise.
});

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logic: removed exit on error/warnings - script will now succeed even when prettier checks fail, breaking CI

Suggested change
});
});
if (didWarn || didError) {
process.exit(1);
}
Prompt To Fix With AI
This is a comment left during a code review. Path: scripts/prettier/index.js Line: 67:67 Comment: **logic:** removed exit on error/warnings - script will now succeed even when prettier checks fail, breaking CI ```suggestion });  if (didWarn || didError) {  process.exit(1); } ``` How can I resolve this? If you propose a fix, please make it concise.

if (didWarn || didError) {
process.exit(1);
}
9 changes: 5 additions & 4 deletions scripts/shared/listChangedFiles.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,14 @@ const execGitCmd = args =>
exec('git', args)
.trim()
.toString()
.split('\n');
.split('\n')
.filter(Boolean);

const listChangedFiles = () => {
const mergeBase = execGitCmd(['merge-base', 'HEAD', 'master']);
const mergeBase = execGitCmd(['merge-base', 'HEAD', 'origin/master'])[0];

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logic: changed 'master' to 'origin/master' - will break if remote is named differently or branch is renamed to main

Prompt To Fix With AI
This is a comment left during a code review. Path: scripts/shared/listChangedFiles.js Line: 30:30 Comment: **logic:** changed `'master'` to `'origin/master'` - will break if remote is named differently or branch is renamed to `main` How can I resolve this? If you propose a fix, please make it concise.
return new Set([
...execGitCmd(['diff', '--name-only', '--diff-filter=ACMRTUB', mergeBase]),
...execGitCmd(['ls-files', '--others', '--exclude-standard']),
...execGitCmd(['diff', '--name-only', mergeBase]),

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logic: removed --diff-filter=ACMRTUB flag - now includes deleted and unmerged files which can cause issues

Prompt To Fix With AI
This is a comment left during a code review. Path: scripts/shared/listChangedFiles.js Line: 32:32 Comment: **logic:** removed `--diff-filter=ACMRTUB` flag - now includes deleted and unmerged files which can cause issues How can I resolve this? If you propose a fix, please make it concise.
...execGitCmd(['ls-files', '--others']),

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logic: removed --exclude-standard flag - will now include gitignored files like node_modules/ in results

Prompt To Fix With AI
This is a comment left during a code review. Path: scripts/shared/listChangedFiles.js Line: 33:33 Comment: **logic:** removed `--exclude-standard` flag - will now include gitignored files like `node_modules/` in results How can I resolve this? If you propose a fix, please make it concise.
]);
};

Expand Down