src/Parent.tsx: import React, { Component } from "react"; import Child from "./Child"; interface IState { msg: st...
Read More
7 Using Material-UI in React-JS
src/First.tsx: import React, { Component } from "react"; import Second from "./Second"; interface IState { key1:...
Read More
6 Multiple Props Program in ReactJS using TypeScript
src/First.tsx: import React, { Component } from "react"; import Second from "./Second"; interface IState { key1:...
Read More
5 Props Program in ReactJS using TypeScript
src/First.tsx: import React,{Component} from 'react' import Second from "./Second"; interface IState{ key1: stri...
Read More
4 Change State Program in ReactJS using TypeScript
src/State.tsx: import React, {Component} from "react"; interface IState{ "sub": string; }; interface IProps{...
Read More
3 State Program in ReactJS using TypeScript
src/App.tsx: import React,{Component} from "react"; interface IState{ "key1" : string; "key2" : n...
Read More
2 Multi Component Program in ReactJS using TypeScript
Steps: 1) Create a React App: > npx create-react-app multi-component --template typescript 2) To Run App: >yarn start * Struc...
Read More
1 Hello World Program in ReactJS using TypeScript
Steps: 1) Create a React App: > npx create-react-app component-app --template typescript 2) To Run App: >yarn start src/First...
Read More
Subscribe to:
Posts (Atom)