diegohaz / arc

React starter kit based on Atomic Design
https://arc.js.org
2.91k stars 295 forks source link

[redux-ssr] onClick handlers for server side rendered pages on mobile #332

Closed matthewconstantine closed 6 years ago

matthewconstantine commented 6 years ago

I'm having trouble getting basic onClick handlers working for pages rendering on iOS Safari and Chrome.

For the simplest possible test, I took the default redux-ssr branch and replaced the Hello World with <div onClick={() => alert('here')}>Hello World</div>.

When rendered in a browser, it works fine, even within Chrome dev tools device emulation. Is there something I'm missing?

matthewconstantine commented 6 years ago

Figured it out, in case anyone else runs into this. I was using ngrok to setup a tunnel for testing on a mobile device. Because I piped port 3000 but not 3001 I was getting the html but not the javascript assets. It's hard to tell the javascript isn't loading because SSR works so well. 🤣