Did we really need another one?
CoffeeScript, TypeScript, PureScript and now we also have ReScript. Granted, it’s not “new new”, but it’s recent and it’s trying to take the place of the good old, and Microsoft-backed, TypeScript.
Welp, apparently no, we aren’t.
Really, what makes it different from all alternatives?
That means they distilled the original language into what they deemed appropriate (thus, the opinionated part). In practice this means you don’t have constructs such as classes, loose global objects such as
console or semicolons for that matter (that’s right, they finally settled that age-old argument: semicolons aren’t needed, deal with it).
Article covers: How native is react native?, React Native vs (Ionic, Cordova), Similarities and difference between React Native and Native App Development.
For working with any tech you must know the lifecycle. When writing React components, we need access to lifecycle events to handle a variety of side effects: like fetching data on mount, changing props when the component updates, cleaning up before the component unmounts, etc.