React Service Component
React Service Component allows run services on client an server sides
Usage
App.js
;; const service: postId => ; @ { const data: loading result error = thisprops; if loading && !result return <div>Loading...</div>; if error return <div>error</div>; return <div> <h1>resulttitle</h1> <p>resultbody</p> </div> ; }
client.js
;;;; // Restore service data; ;
server.js
;;;;;; const PORT = processenvNODE_PORT || 9090; const app = ; app; app;
License
The MIT License Copyright (c) 2017-2018 Ivan Zakharchenko