I have a file called A.js. And in this file, I have a method doing this:
getSummaryRows() {
const planRows = Plans.summray(this.state.selectedPlanSize, !this.state.selectedDB);
Now, I want to use the above defined planRows into another file called B.js.
I tried using it, but couldn't. Can someone tell me what's the correct way?
Where is B in the component tree, relative to A?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.