oly react
Create an app with React and oly.
oly react is a module of the oly project.
;;; Kernel .create .withReactApp, ReactServerProvider .start .catchconsole.error;
Installation
$ npm install oly oly-react react @types/react react-dom
Features
@inject/@env/@on with React
;;;; ;render AppContext kernel=App//AppContext, document.getElementById"app";
Router
;
Server Side Rendering
// app.tsx; // main.browser.ts;; Kernel .create .withApp, ReactBrowserProvider .start .catchconsole.error // main.server.ts;; Kernel .create // webpack build directory .withApp, ReactServerProvider .start .catchconsole.error
Dependencies
Routing | path-to-regexp |
History | history |
Meta | react-helmet |