Ameausoone / demo-github-action

12 stars 1 forks source link

How do I use react with typescript ? #62

Open CeliaDoolaeghe opened 2 years ago

github-actions[bot] commented 2 years ago

React is a library/framework for building UIs. You construct various components that describe what you want the page to look like, and then react handles figuring out what changed and making updates to the page. If someone just says "react" without any other context, this is probably what they mean.

React Native uses the same core functionality as react, but once it has figured out the changes that need to be made, rather than update the dom (ie, the webpage), it updates native components for android or ios. React native thus lets you write native phone apps, using the syntax and tools that are familiar to react developers.

Javascript vs typescript is completely different axis. They can be used with react, but they are unrelated to react. Javascript is the main programming language used by webpages. Typescript is a superset of javascript, which lets you add type information to your code. This then lets you find bugs in your code quicker, because your IDE and build process can check the types to see if you've made mistakes.