├── .gitignore ├── 01.tsx ├── 02.tsx ├── 03.tsx ├── 04.tsx ├── 05.tsx ├── 06.tsx ├── README.md ├── exercise.md ├── package.json ├── polymorphic-react-component.excalidraw ├── public ├── favicon.ico ├── index.html ├── logo192.png ├── logo512.png ├── manifest.json └── robots.txt ├── src ├── App.css ├── App.test.tsx ├── App.tsx ├── components │ ├── Text.tsx │ └── index.ts ├── index.css ├── index.tsx ├── logo.svg ├── react-app-env.d.ts ├── reportWebVitals.ts └── setupTests.ts ├── tsconfig.json ├── use-cases.pdf └── yarn.lock /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ohansemmanuel/polymorphic-react-component/HEAD/.gitignore -------------------------------------------------------------------------------- /01.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ohansemmanuel/polymorphic-react-component/HEAD/01.tsx -------------------------------------------------------------------------------- /02.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ohansemmanuel/polymorphic-react-component/HEAD/02.tsx -------------------------------------------------------------------------------- /03.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ohansemmanuel/polymorphic-react-component/HEAD/03.tsx -------------------------------------------------------------------------------- /04.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ohansemmanuel/polymorphic-react-component/HEAD/04.tsx -------------------------------------------------------------------------------- /05.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ohansemmanuel/polymorphic-react-component/HEAD/05.tsx -------------------------------------------------------------------------------- /06.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ohansemmanuel/polymorphic-react-component/HEAD/06.tsx -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ohansemmanuel/polymorphic-react-component/HEAD/README.md -------------------------------------------------------------------------------- /exercise.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ohansemmanuel/polymorphic-react-component/HEAD/exercise.md -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ohansemmanuel/polymorphic-react-component/HEAD/package.json -------------------------------------------------------------------------------- /polymorphic-react-component.excalidraw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ohansemmanuel/polymorphic-react-component/HEAD/polymorphic-react-component.excalidraw -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ohansemmanuel/polymorphic-react-component/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ohansemmanuel/polymorphic-react-component/HEAD/public/index.html -------------------------------------------------------------------------------- /public/logo192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ohansemmanuel/polymorphic-react-component/HEAD/public/logo192.png -------------------------------------------------------------------------------- /public/logo512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ohansemmanuel/polymorphic-react-component/HEAD/public/logo512.png -------------------------------------------------------------------------------- /public/manifest.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ohansemmanuel/polymorphic-react-component/HEAD/public/manifest.json -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ohansemmanuel/polymorphic-react-component/HEAD/public/robots.txt -------------------------------------------------------------------------------- /src/App.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ohansemmanuel/polymorphic-react-component/HEAD/src/App.css -------------------------------------------------------------------------------- /src/App.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ohansemmanuel/polymorphic-react-component/HEAD/src/App.test.tsx -------------------------------------------------------------------------------- /src/App.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ohansemmanuel/polymorphic-react-component/HEAD/src/App.tsx -------------------------------------------------------------------------------- /src/components/Text.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ohansemmanuel/polymorphic-react-component/HEAD/src/components/Text.tsx -------------------------------------------------------------------------------- /src/components/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./Text"; 2 | -------------------------------------------------------------------------------- /src/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ohansemmanuel/polymorphic-react-component/HEAD/src/index.css -------------------------------------------------------------------------------- /src/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ohansemmanuel/polymorphic-react-component/HEAD/src/index.tsx -------------------------------------------------------------------------------- /src/logo.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ohansemmanuel/polymorphic-react-component/HEAD/src/logo.svg -------------------------------------------------------------------------------- /src/react-app-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /src/reportWebVitals.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ohansemmanuel/polymorphic-react-component/HEAD/src/reportWebVitals.ts -------------------------------------------------------------------------------- /src/setupTests.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ohansemmanuel/polymorphic-react-component/HEAD/src/setupTests.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ohansemmanuel/polymorphic-react-component/HEAD/tsconfig.json -------------------------------------------------------------------------------- /use-cases.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ohansemmanuel/polymorphic-react-component/HEAD/use-cases.pdf -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ohansemmanuel/polymorphic-react-component/HEAD/yarn.lock --------------------------------------------------------------------------------