react-closure-compiler
react-closure-compiler copied to clipboard
Tooling to teach Closure Compiler about React
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?