我在使用react-rails前端的rails 4应用程序中使用react-modal时遇到问题。我已经按照这个SO问题How to call react-modal from rails-assets.org in react-rails component和这个GitHub问题https://github.com/reactjs/react-rails/issues/510中的步骤,但他们都没
我使用的基本组成模式成分反应 - https://github.com/reactjs/react-modal 我想实现的是,我想从有进口的模态另一位家长开模。 Parent.js
<button onClick={() => this.refs.setState({modalIsOpen: true})}> - THIS BUTTON ELEMENT IS IN ANOTHER COMPONE