Skip to content

A simple Parcel + Typescript (For internal training)

Notifications You must be signed in to change notification settings

ejoo/parcel-typescript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

This is a simple repo with Typescript + Parcel + React + ReactDOM

credits

  • uConnect

installation

  • clone
  • cd into directory
  • command: yarn
  • command to start: yarn start

Lecture Notes:

Rules

  • Whenever you write <html> or <ReactCOmponent />
    • use .tsx extension.
    • import * as React from 'react'

assignment

  • Create a complex website layout
    • create Footer.tsx
    • create Header.tsx
    • create Sidebar.tsx
    • Import all those in the App.tsx
    • Combine all components.

Day Notes

  • There are two types of components
    • Class Based Component or Statefull component
      • rules
        • it must be extended from React.Component
        • it must have a method called render()
      • Notes
        • You can still make a class components without a state in it.
    • Functional Components or Stateless Components
      • When you write a JSX or TSX inside a normal function, it becomes Functional Component.
      • Why we call it stateless? Because it lacks state like Class Components
    • When we write component we can decide what type of component should we write by just identifying whether this component needs a state or not.

assignment 3rd day

  1. Complete the registration form

  2. Create another form which should take inputs:

    • first name
    • last name
    • email
    • father name
    • address (textarea)
    • gender ( radio button )
    • interest ['cricket', 'volleyball', 'books'] => checkbox
    • University ['KIU', "QU", "AKU" ]

    User should be able to sumbit and see informatio on the left side of the page.

next class

1. Props
2. Functions as Props
3. !important: Life Cycle Hooks
4. What is parent component and what is child Component

next class / 6/2/2019

  • Life Cycle Hooks Continue
  • SPA (single page application ) SPW -> Single Page Website
  • Pages -> Router

assignment

About

A simple Parcel + Typescript (For internal training)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published