I have a React-On-Rails application which is being rendered inside a of some other application and i don't have access to parent components code.
I want to change the height of the parent iframe from my react application. How to achieve it?
答案 0 :(得分:0)
You can define a function in parent page:
var setHeight = function(height){
setIframeHeight(height)
}
Then,in child page,you can do like this:
parent.setHeight(200)