dillon1000/react
Commit
Browse files Add Basic TypeScript Class Test
As part of the new class effort it is now possible to define React Components using any type of generic JavaScript class syntax. This includes TypeScript classes. This test ensures that we don't regress that support, and also serves as an example for using React in TypeScript. TypeScript provides a good demo of where we think property initializers are going. We don't have any official *type* support for TypeScript yet. This test trails the ReactES6Class-test file. Some manual tweaking is required when converting tests.
Changed paths6 files
First-parent comparisonjest/jest.d.ts AddedM jest/preprocessor.js ModifiedM package.json ModifiedM src/modern/class/__tests__/ReactClassEquivalence-test.js ModifiedA src/modern/class/__tests__/ReactTypeScriptClass-test.ts AddedA src/modern/class/__tests__/react.d.ts AddedPatch
Files changed
Rendering syntax-highlighted changes…