I was looking at Facebook React Native documentation and I saw super(props) in constructor in State part.
I found that we use super(props) only if we want to access props in constructor.
My question, isn't it unnecessary to use props in here then?
class Blink extends Component {
constructor(props) {
super(props);
this.state = {isShowingText: true};
// Toggle the state every second
setInterval(() => {
this.setState(previousState => {
return { isShowingText: !previousState.isShowingText };
});
}, 1000);