{"action":"created","issue":{"url":"https://api.github.com/repos/developit/htm/issues/52","repository_url":"https://api.github.com/repos/developit/htm","labels_url":"https://api.github.com/repos/developit/htm/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/developit/htm/issues/52/comments","events_url":"https://api.github.com/repos/developit/htm/issues/52/events","html_url":"https://github.com/developit/htm/issues/52","id":393793540,"node_id":"MDU6SXNzdWUzOTM3OTM1NDA=","number":52,"title":"How to use with server side rendering?","user":{"login":"balupton","id":61148,"node_id":"MDQ6VXNlcjYxMTQ4","avatar_url":"https://avatars1.githubusercontent.com/u/61148?v=4","gravatar_id":"","url":"https://api.github.com/users/balupton","html_url":"https://github.com/balupton","followers_url":"https://api.github.com/users/balupton/followers","following_url":"https://api.github.com/users/balupton/following{/other_user}","gists_url":"https://api.github.com/users/balupton/gists{/gist_id}","starred_url":"https://api.github.com/users/balupton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balupton/subscriptions","organizations_url":"https://api.github.com/users/balupton/orgs","repos_url":"https://api.github.com/users/balupton/repos","events_url":"https://api.github.com/users/balupton/events{/privacy}","received_events_url":"https://api.github.com/users/balupton/received_events","type":"User","site_admin":false},"labels":[{"id":1140706011,"node_id":"MDU6TGFiZWwxMTQwNzA2MDEx","url":"https://api.github.com/repos/developit/htm/labels/documentation","name":"documentation","color":"146087","default":false},{"id":1009506173,"node_id":"MDU6TGFiZWwxMDA5NTA2MTcz","url":"https://api.github.com/repos/developit/htm/labels/question","name":"question","color":"d876e3","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-12-24T01:12:09Z","updated_at":"2019-04-16T12:37:21Z","closed_at":null,"author_association":"NONE","body":"It would be nice if there was documentation on how to use this with server side rendering.\r\n\r\nSuch that:\r\n\r\n1. Server sends the prerendered compontent\r\n2. Client receives the prerendered component and makes it interactive for the user"},"comment":{"url":"https://api.github.com/repos/developit/htm/issues/comments/483641257","html_url":"https://github.com/developit/htm/issues/52#issuecomment-483641257","issue_url":"https://api.github.com/repos/developit/htm/issues/52","id":483641257,"node_id":"MDEyOklzc3VlQ29tbWVudDQ4MzY0MTI1Nw==","user":{"login":"mfolkeseth","id":7047431,"node_id":"MDQ6VXNlcjcwNDc0MzE=","avatar_url":"https://avatars0.githubusercontent.com/u/7047431?v=4","gravatar_id":"","url":"https://api.github.com/users/mfolkeseth","html_url":"https://github.com/mfolkeseth","followers_url":"https://api.github.com/users/mfolkeseth/followers","following_url":"https://api.github.com/users/mfolkeseth/following{/other_user}","gists_url":"https://api.github.com/users/mfolkeseth/gists{/gist_id}","starred_url":"https://api.github.com/users/mfolkeseth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfolkeseth/subscriptions","organizations_url":"https://api.github.com/users/mfolkeseth/orgs","repos_url":"https://api.github.com/users/mfolkeseth/repos","events_url":"https://api.github.com/users/mfolkeseth/events{/privacy}","received_events_url":"https://api.github.com/users/mfolkeseth/received_events","type":"User","site_admin":false},"created_at":"2019-04-16T12:37:21Z","updated_at":"2019-04-16T12:37:21Z","author_association":"NONE","body":"I created a small demo to make it work-ish. Although I had to use some dependency injection of `htm` and `vhtml` to make it render seamless on server and client. I also had to rely on a Hooks-inly implementation. Not too keen on this opinionated implementation tho.\r\n\r\nTake a look here if you are interested https://github.com/mfolkeseth/dvlp-test. Some feedback towards a better approach would be very much appreciated 👍 "}}
{"actor":{"display_login":"mfolkeseth"}}