I agree with you that react is definitely open source, but I'd also encourage you to use more specific wording around what "open source" means.
I think wikipedia gets this right: https://en.wikipedia.org/wiki/Open-source_software
"Open-source software (OSS) is computer software that is released under a license in which the copyright holder grants users the rights to use, study, change, and distribute the software and its source code to anyone and for any purpose"
The license is the key bit.
On the other hand, there's "source available" software (also on wikipedia https://en.wikipedia.org/wiki/Source-available_software ), which is what your definition equates to, and I personally don't want to see confused with open source or free software.