react-closure-compiler icon indicating copy to clipboard operation
react-closure-compiler copied to clipboard

Tooling to teach Closure Compiler about React

Results 13 react-closure-compiler issues
Sort by recently updated
recently updated
newest added

Development builds of React emit a warning, but this can be analyzed statically for `React.createElement` calls.

We currently generate a dummy `JSDocInfo` in `gatherStaticsJsDocs` to appease the `CheckSideEffects` pass, but if the static is initialized with a function, number, etc. then we could generate a `JSTypeExpression`...

Can we instead inject enough file-level `@suppress` into the React source file to quieten all errors?