Aditya Raj

Results 1 comments of Aditya Raj

Try: static keyword 1. Bind the static method in constructor MyClass.showModal = MyClass.showModal.bind(this); 2. Define the method static showModal() { this.setState({ show: true }) }; 3. Call the static method...