GithubHelp home page GithubHelp logo

rntypescript's Introduction

RNTypescript

Typescript in React Native

1. Define

Typescript is an open-source programming language developed and maintained by Microsoft. It is a strict syntactical superset of JavaScript, and adds optional static typing to the language.

2. Benefits of Typescript

a. Typescript supports many types

You can use class, interface, type, basic data types (number, string, Date, boolean, array,...).

b. Typescript helps us avoid many errors in run-time

Example: in javascript you have this function to subtract 100 for a number
function plusFive(num) {
  return num - 100;
}
The exception will be generated if I pass a string instead of a number, and this exception only happens at run-time, too dangerous.

c. Easy to read, test, expand and maintain

d. Easy to apply OOP principles, SOLID principles, Design Patterns

e. One of the biggest advantages of TypeScript is its code completion and IntelliSense. Intellisense provides active hints as a code is added.

f. The ability to compile down to a version of JavaScript that runs on all browsers

References

https://apiumhub.com/tech-blog-barcelona/top-typescript-advantages/
https://github.com/microsoft/TypeScript

rntypescript's People

Contributors

uit2712 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.