In a definition sentence like "React is a JavaScript library that lets you create single-page web applications," does the relative clause " that lets you create single-page web applications" modify "React" or "JavaScript library
The rule of proximity says the JavaScript library is being modified, also according to some grammar books, the JavaScript library again due to the fact "which type of library is meant? -> That lets you...".
However, the definition (context) says React.
This is not the only sentence of which I want to know the subject. But sentences like this one create confusion for me.