Timo Mämecke
Timo Mämecke
You have to bind own methods, so `this` is referenced correctly. ```js class App extends React.Component { constructor(props) { super(props) this.state = { isModalOpen: true } this.openModal = this.openModal.bind(this) this.closeModal...
I use it with the asset pipeline, too, and it works just fine with the code example above. I don't do server side rendering, but that shouldn't have an effect...
@AmaniSalah Sure. Could you please explain your problem a little bit more in detail? What should happen, but what's happening instead? What's not working? According to your code, each time...
This doesn't sound like a problem with method binding. You only need `.bind(this)` if you're using `this` inside your `test`-method. However, I tested your code example and it worked just...
If React DevTools doesn't detect the React App, and the button click is not triggered, it sounds like you're only doing server-side rendering, and the browser isn't actually running your...
Hummm, that sounds very strange. It's very weird that React DevTools doesn't recognize the React App (which would indicate server-side-rendering), but the log is still shown in the browsers console...
I'm using @shlajin's fork and can confirm it works