Answer the question
In order to leave comments, you need to log in
How to pass a function to react js?
The window close function comes from the parent to the child component inside this.props.
Inside child I call it like this
How can I call the same function inside<a key={index} onClick={this.props.onClose}/>
transitionToAnchor(id, event){
this.searchDataPopup(id);
event.preventDefault();
}
, which is inside the same child component
Answer the question
In order to leave comments, you need to log in
That screenshot that you sent is already on Yandex. There records dns1.yandex.net. and dns2.yandex.net. do not need to be entered. They need to be entered in the domain settings where you bought your website address. After you specify them, this will be considered that you have delegated the domain to Yandex. However, if this is not a freshly purchased address and some DNS servers have already been registered there earlier, then such a change will lead to the inoperability of the site (sites) and some services. Write - we'll figure it out as we go.
1. deligirish the domain in an adequate place
2. you prescribe the confirmations you need.
3. you delegate to Yandex
4. you create mail.
So:
transitionToAnchor(id, event){
this.searchDataPopup(id);
this.props.onClose();
event.preventDefault();
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question