Repository created to record my practice learning React with exercises based on the Udemy Course of Maximilian Schwarzmüller.
- Status
- Requirements
- Setup
- How to run it
- Repo structure & what i learned in each exercise
- Other practice repos
- Current repo's version is
- This course has been completed on 28/12/2022 - Certificate
After finishing its related Udemy course, I archive this repository and unarchive it when I start a new training and add a link in the Other practice repos
section referring to its new repo. But I don't update any associated dependency due to technology changes during the years between each practice, and the produced code which works with the mentioned requirements
.
- Node
v16.13.2
or above
After cloning the repo, go to the created folder and install the node packages.
git clone https://github.com/NicolasOmar/typescript-practice.git
cd typescript-practice
npm run setup-all
setup-all
is the command to install all the projects, but if you want to do it one by one, you can change that last line for one of the following:
App Setup | Command |
---|---|
All | npm run setup-all |
Basics | npm run setup-basics |
Configs | npm run setup-configs |
Classes, Interfaces & Types | npm run setup-classes |
Generics & Decorators | npm run setup-generics |
Practice Demo #1 | npm run setup-drag-and-drop |
Practice Demo #2 | npm run setup-select-and-share |
React & Node | npm run setup-react-and-node |
To run any specific exercise, execute the following command in the project´s folder:
npm start
- Basics (
1-basics
folder)- Create, code and compile a
.ts
file into javascript - Understanding of
Core Types
likenumber
,string
,boolean
,array
andobject
- Understanding of
Tuples
,Enums
,Union
andLiteral/Custom
Types - Understanding of
void
,undefined
,unknown
andnever
Types
- Create, code and compile a
- Configs (
2-configs
folder)- Adding
watch mode
to mantain updated changes and check possible errors before hand - Create a typescript configuration file with
tsc --init
and tweak for a custom config - Understand how Typescript compiles ES6+ code (like
let/const
,arrow functions
,default function parameters
,spread operator
anddestructuring
)
- Adding
- Classes, Interfaces & Types (
3-classes-interfaces-types
folder)- Basic understanding of
Classes
creation with its properties and methods - Know difference between a
public
,private
andprotected
properties - Basic understanding of
class inheritance
- How to use
getters
andsetters
- How to use
static methods
- Basic understanding of
Interfaces
and its implementation onClasses
and otherInterfaces
- Understanding and implementation of
Intersection Types
,Type Guards
,Discriminated Unions
,Type Casting
andFunction Overloads
- Basic understanding of
- Generics & Decorators (
4-generics-decorators
folder)- Basic understanding og
Generic Types
- How to use multiple generic types in a function
- Understanding and implementation of
extends
andkeyof
- Understanding and implementation of utitlies like
Partial
andReadonly
- Basic understanding of
Decorators
- How to implement an template creation and setting by using a
Decorator Factory
- Ways of implement decorators such as
Properties
,Set
,Methods
andParameters
- Basic understanding og
- Practice Demo #1 (
5-drag-and-drop
folder)- Review of all concepts mentioned above
- Understanding and implementation a Drag and Drop event (from one point to the other)
- How to split code using
namespaces
and solve its possible problems withES6 modules
- Basic understanding and implementation of
Webpack
(configuration for development and production environments)
- Practice Demo #2 (
6-select-and-share
folder)- Use Google GeoCoding API to get information from places
- Use Axios to make API calls
- How to use Javascript-based libraries in Typescript by using
@types/[LIBRARY_NAME]
(in this case, using googlemaps types)
- React & Node (
7-react-and-node
folder)- How to create a React project with Typescript installed using create-react-app
- How to use React features such as
useState
,functional components
andprops
with TS - How to compile work with Typescript in Node with tsc and nodemon
- How to use Express features such as
Routes
andResquests
with TS
Node | Angular | GraphQL | React | HTML & CSS | Styling | Docker | Next.js |
---|---|---|---|---|---|---|---|