├── .gitignore ├── .nvmrc ├── .prettierrc ├── README.md ├── package.json ├── public ├── favicon.ico ├── index.html ├── logo192.png ├── logo512.png ├── manifest.json └── robots.txt ├── src ├── App.jsx ├── Header.jsx ├── example │ ├── CounterContext.jsx │ ├── FunctionalComponent.jsx │ ├── HOCclassComponent.jsx │ ├── RenderPropsClassComponent.jsx │ ├── index.jsx │ └── useDocumentTitle.jsx ├── exercise1 │ ├── RandomImage.jsx │ └── index.jsx ├── exercise2 │ ├── ClassComponentHOC.jsx │ ├── ClassComponentRenderProps.jsx │ ├── FunctionalComponent.jsx │ ├── index.jsx │ └── useRandomImage.jsx ├── exerciseContext │ ├── Button.jsx │ ├── Hero.jsx │ ├── ThemeProvider.jsx │ ├── ThemedApp.jsx │ └── theme.js ├── index.css └── index.js └── yarn.lock /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ric9176/refactor-to-modern-patterns-workshop/HEAD/.gitignore -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | 14.9.0 2 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ric9176/refactor-to-modern-patterns-workshop/HEAD/.prettierrc -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ric9176/refactor-to-modern-patterns-workshop/HEAD/README.md -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ric9176/refactor-to-modern-patterns-workshop/HEAD/package.json -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ric9176/refactor-to-modern-patterns-workshop/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ric9176/refactor-to-modern-patterns-workshop/HEAD/public/index.html -------------------------------------------------------------------------------- /public/logo192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ric9176/refactor-to-modern-patterns-workshop/HEAD/public/logo192.png -------------------------------------------------------------------------------- /public/logo512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ric9176/refactor-to-modern-patterns-workshop/HEAD/public/logo512.png -------------------------------------------------------------------------------- /public/manifest.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ric9176/refactor-to-modern-patterns-workshop/HEAD/public/manifest.json -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ric9176/refactor-to-modern-patterns-workshop/HEAD/public/robots.txt -------------------------------------------------------------------------------- /src/App.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ric9176/refactor-to-modern-patterns-workshop/HEAD/src/App.jsx -------------------------------------------------------------------------------- /src/Header.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ric9176/refactor-to-modern-patterns-workshop/HEAD/src/Header.jsx -------------------------------------------------------------------------------- /src/example/CounterContext.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ric9176/refactor-to-modern-patterns-workshop/HEAD/src/example/CounterContext.jsx -------------------------------------------------------------------------------- /src/example/FunctionalComponent.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ric9176/refactor-to-modern-patterns-workshop/HEAD/src/example/FunctionalComponent.jsx -------------------------------------------------------------------------------- /src/example/HOCclassComponent.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ric9176/refactor-to-modern-patterns-workshop/HEAD/src/example/HOCclassComponent.jsx -------------------------------------------------------------------------------- /src/example/RenderPropsClassComponent.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ric9176/refactor-to-modern-patterns-workshop/HEAD/src/example/RenderPropsClassComponent.jsx -------------------------------------------------------------------------------- /src/example/index.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ric9176/refactor-to-modern-patterns-workshop/HEAD/src/example/index.jsx -------------------------------------------------------------------------------- /src/example/useDocumentTitle.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ric9176/refactor-to-modern-patterns-workshop/HEAD/src/example/useDocumentTitle.jsx -------------------------------------------------------------------------------- /src/exercise1/RandomImage.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ric9176/refactor-to-modern-patterns-workshop/HEAD/src/exercise1/RandomImage.jsx -------------------------------------------------------------------------------- /src/exercise1/index.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ric9176/refactor-to-modern-patterns-workshop/HEAD/src/exercise1/index.jsx -------------------------------------------------------------------------------- /src/exercise2/ClassComponentHOC.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ric9176/refactor-to-modern-patterns-workshop/HEAD/src/exercise2/ClassComponentHOC.jsx -------------------------------------------------------------------------------- /src/exercise2/ClassComponentRenderProps.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ric9176/refactor-to-modern-patterns-workshop/HEAD/src/exercise2/ClassComponentRenderProps.jsx -------------------------------------------------------------------------------- /src/exercise2/FunctionalComponent.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ric9176/refactor-to-modern-patterns-workshop/HEAD/src/exercise2/FunctionalComponent.jsx -------------------------------------------------------------------------------- /src/exercise2/index.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ric9176/refactor-to-modern-patterns-workshop/HEAD/src/exercise2/index.jsx -------------------------------------------------------------------------------- /src/exercise2/useRandomImage.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ric9176/refactor-to-modern-patterns-workshop/HEAD/src/exercise2/useRandomImage.jsx -------------------------------------------------------------------------------- /src/exerciseContext/Button.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ric9176/refactor-to-modern-patterns-workshop/HEAD/src/exerciseContext/Button.jsx -------------------------------------------------------------------------------- /src/exerciseContext/Hero.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ric9176/refactor-to-modern-patterns-workshop/HEAD/src/exerciseContext/Hero.jsx -------------------------------------------------------------------------------- /src/exerciseContext/ThemeProvider.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ric9176/refactor-to-modern-patterns-workshop/HEAD/src/exerciseContext/ThemeProvider.jsx -------------------------------------------------------------------------------- /src/exerciseContext/ThemedApp.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ric9176/refactor-to-modern-patterns-workshop/HEAD/src/exerciseContext/ThemedApp.jsx -------------------------------------------------------------------------------- /src/exerciseContext/theme.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ric9176/refactor-to-modern-patterns-workshop/HEAD/src/exerciseContext/theme.js -------------------------------------------------------------------------------- /src/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ric9176/refactor-to-modern-patterns-workshop/HEAD/src/index.css -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ric9176/refactor-to-modern-patterns-workshop/HEAD/src/index.js -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ric9176/refactor-to-modern-patterns-workshop/HEAD/yarn.lock --------------------------------------------------------------------------------