Speedy Type Boilerplate
This repository contains the boilerplate code for my ReactJS workshop with Let's Hack hackathon.
See the full code: https://github.com/MadhavBahl/speedy-type
See the webinar: https://www.youtube.com/watch?v=iOycaFe53k4
Set up a new CRA
npx create-react-app playground
cd playground
npm start
Things to discuss during webinar
- Why React?
- React Components
- Sample Component Architechture
- One Way Data Flow In React
- JSX
- State
- Props
- Lifecycle Methods
- React Hooks
- lifecycle methods vs useEffect
Why React?
- Fast Learning Curve
- Reusable components
- Fast Render with Virtual DOM
- Great Dev Tools
- Great Dev Community
- Proper Modularization
- Clean Abstraction
- React Native, React Desktop
React Components
React Sample Component Architecture for Pokedex App
See the app in action here: http://madhavbahl.tech/react-pokedex
React Component Hierarchy and One Way Data Flow
React Lifecycle Methods
Deploying the app
Check out the steps at : https://medium.com/javascript-in-plain-english/how-to-deploy-your-react-app-on-github-pages-in-2-minutes-8040f0df1543
Summary -
npm install gh-pages
- Add
homepage
in `package.json"homepage": "https://MadhavBahl.github.io/speedy-type",
- Add pre-deploy and deploy scripts
npm run deploy
Deploy and Pre-deploy scripts
"predeploy": "npm run build",
"deploy": "gh-pages -d build"
Screenshots
Things to do after the webinar/Ideas
- Improve the details calculator algorithm to take into account the past mistakes as well.
- Add colors in the type test (Mark the letters that are typed correct with green and wrong ones with red).
- Learn about SCSS and replace the CSS files with SCSS.
- Learn about Redux and use redux in this project.
Special Thanks
Special thanks to https://thepracticetest.com/typing/tests/practice-paragraphs/ for the typing speed test paragraphs and overall inspiration.