congzhangzh / react-native-remote-web

Server-side execution for React 🌋
https://www.npmjs.com/package/caldera
1 stars 0 forks source link

[call for help][thirdparty components][light-ui] try a more light ui component #4

Open congzhangzh opened 2 years ago

congzhangzh commented 2 years ago

It seems light ui is more possible? https://github.com/ecmadao/light-ui

the problem to solve:

  1. style loader replacement to add to Head part A custom loader to inject to Head part, or split it out and response by static file
  2. window.addEventListener Like other part, a react event <=> a real web event
  3. document head body related code? Add dummy part and pair response part on real part

solution, new two predefine component

<Application>
<Document>
<Head>
</Head>
<Body>
<RealApp/>
</Body>
</Document>
</Application>

And most importantly, limit it by just html, css, or other part handle on server side!

Ref

3