简体   繁体   English

React渲染非React-dom

[英]React rendering non react-dom

if react-dom is specifically geared for rendering html elements and react-native renders native views... Lets say I have an xml type language and I want to use react / jsx to declaratively compose components that have there own native elements. 如果react-dom特别适合呈现html元素,而react-native呈现本机视图...可以说我有一种xml类型语言,并且我想使用react / jsx声明性地组成具有自己的本机元素的组件。

  • How do I create base elements (not divs or spans but something else) 如何创建基本元素(不是div或span而是其他东西)

  • How can I get a react component to run its lifecycle method without using ReactDom.render 我如何在不使用ReactDom.render的情况下使React组件运行其生命周期方法

  • any resources out there that I can study? 有什么我可以学习的资源吗?

Thanks in advance 提前致谢

您可以查看Nitin Tulswani编写的自定义React渲染器教程

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM