Description |
1 online resource (492 pages) |
Contents |
Cover; Title Page; Copyright and Credits; About Packt; Contributors; Table of Contents; Preface; Chapter 1: TypeScript Basics; Technical requirements; Understanding the benefits of TypeScript; Catching coding errors early; Better developer experience and productivity; Using future JavaScript features; Understanding basic types; Primitive types; Type annotations; Type inference; Any; Void; Never; Enumerations; Objects; Arrays; Creating interfaces, types aliases, and classes; Interfaces; Properties; Method signatures; Optional properties and parameters; Readonly properties; Extending interfaces |
|
Type aliasesClasses; Basic classes; Implementing interfaces; Constructors; Extending classes; Abstract classes; Access modifiers; Property setters and getters; Static; Structuring code into modules; Module formats; Exporting; Importing; Default exports; Configuring compilation; Common options; -- target; -- outDir; -- module; -- allowJS; -- watch; -- noImplicitAny; -- noImplicitReturns; -- sourceMap; -- moduleResolution; tsconfig.json; Specifying files for compilation; TypeScript linting; Installing TSLint; Configuring rules; Built-in rules; Excluding files; Code formatting; Summary; Questions |
|
Further readingChapter 2: What is New in TypeScript 3; Technical requirements; Tuples; JavaScript rest and spread syntax; Open-ended tuples; Tuple function parameters; Spread expressions; Empty tuples; Optional tuple elements; The unknown type; Type checking with a type predicate; Type narrowing with a type assertion; Project references; Setting up an example; Referencing projects ; Additions to compiler options; Cross-project Go to Definition; Build mode; Default JSX properties; Summary; Questions; Further reading; Chapter 3: Getting Started with React and TypeScript; Technical requirements |
|
Creating a React and TypeScript projectUsing create-react-app; Creating a project manually; Creating our folder structure; Creating package.json; Adding TypeScript; Creating tsconfig.json; Adding TSLint; Adding React with types; Creating a root web page; Creating a simple React component; Adding webpack; Project folders and files; Creating start and build scripts; Creating a class component; Creating a basic class component; JSX; Component props; Optional props; Default prop values; Handling class component events; Basic event handlers; The this problem; Function props; Class component states |
|
Defining state typeInitializing the state; Changing state; Class component life cycle methods; componentDidMount ; componentWillUnmount; getDerivedStateFromProps; getSnapshotBeforeUpdate and componentDidUpdate; shouldComponentUpdate; Deprecated life cycle methods; Creating a function component; Creating a basic function component; Stateful function components; Function component life cycle hooks; Optimizing function component rendering; Summary; Questions; Further reading; Chapter 4: Routing with React Router; Technical requirements; Installing React Router with routing types |
Note |
Declaring routes |
Summary |
React today is one of the most loved and preferred choices for front-end development. Using React with TypeScript enhances development experience and offers a powerful combination to develop high performing web apps. This book will take you through a journey of web development with the help of the latest version of React and TypeScript 3. |
Bibliography |
Includes bibliographical references. |
Local Note |
eBooks on EBSCOhost EBSCO eBook Subscription Academic Collection - North America |
Subject |
TypeScript (Computer program language)
|
|
Web site development.
|
|
Application software -- Development.
|
|
Web programming. |
|
Programming & scripting languages: general. |
|
Computers -- Programming Languages -- JavaScript. |
|
Computers -- Web -- Web Programming. |
|
Computers -- Web -- Site Design. |
|
Application software -- Development |
|
TypeScript (Computer program language) |
|
Web site development |
Other Form: |
Print version: Rippon, Carl. Learn React with TypeScript 3 : Beginner's Guide to Modern React Web Development with TypeScript 3. Birmingham : Packt Publishing Ltd, ©2018 9781789610253 |
ISBN |
1789618126 |
|
9781789618129 (electronic bk.) |
|
1789610257 |
|
9781789610253 |
|