airbnb / hypernova-react

React bindings for Hypernova.
https://github.com/airbnb/hypernova
MIT License
248 stars 43 forks source link

Separate client and server logic #45

Open wingleung opened 6 years ago

wingleung commented 6 years ago

Getting https://github.com/airbnb/hypernova-react/issues/5 started...

existing endpoint left intact to not break current implementations, or should we break?

new import on server side apps import { renderReact } from 'hypernova-react/server'; new import client side import { renderReact } from 'hypernova-react/client';

wingleung commented 6 years ago

@ljharb good that the concept is the right way to go, worked it out a little more please review.

wingleung commented 6 years ago

@ljharb @goatslacker ready to review, this PR splits server and client code making client code smaller