Why super(props) is used in react?

Are you wondering What does calling super(props) in a React constructor do?
You have a Class component and you get annoyed typing every single time super(props)?
Well it’s just Javascript!

First you need to know the meaning of super().

And then check out this article in the fresh new Dan Abramov’s blog, the React guru.

tns setup issue. Solved.

You have Xcode installed but you still get the error:

xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
Xcode is not installed or not configured properly. Download, install, set it up and run this script again.

Here is how I solved the issue:

  • open Xcode
  • Preferences > Locations
  • Select a Command Line Tools from the dropdown

for more info check this stackoverflow question.

I got this issue working on a NativeScript-Vue project. I couldn’t run
npm run watch:
because I was missing the nativescript-cloud extension. So I had to run tns setup …

Older posts