
React
文章平均质量分 51
SeriousLose
✎﹏小飞飞 认真你就输了,一直认真你就赢了
展开
-
React Native 环境安装
React Native 环境安装。原创 2024-01-11 12:25:48 · 764 阅读 · 0 评论 -
react/vue/angular中使用同一组件设计思考
React中如何使用组件?◦ Angular中如何使用组件?◦ Vue中如何使用组件?原创 2022-07-28 10:10:24 · 391 阅读 · 0 评论 -
React是什么?
它的核心设计思路有三点,分别是声明式、组件化与 通用性。声明式的优势在于直观与组合。组件化的优势在于视图的拆分与模块复用,可以更容易做到高内聚低耦合。通用性在于一次学习,随处编写。比如 React Native,React 360 等, 这里主要靠虚拟 DOM 来保证实现。这使得 React 的适用范围变得足够广,无论是 Web、Native、VR,甚至 Shell 应用都可以进行开发。这也是 React 的优势。但作为一个视图层的框架,React 的劣势也十分明显。它并没有提供完整的一揽子解决方原创 2022-07-06 22:27:41 · 297 阅读 · 0 评论 -
React Component
react 组件控制渲染原创 2022-06-19 00:33:17 · 222 阅读 · 0 评论 -
Uncaught Error: Objects are not valid as a React child (found: Error: Objects are not valid as a Rea
Uncaught Error: Objects are not valid as a React child (found: Error: Objects are not valid as a React child (found: object with keys {name}). If you meant to render a collection of children, use an array instead.class Index extends Component { co原创 2022-05-27 00:09:52 · 1536 阅读 · 2 评论 -
React Input
react hooks + Ant Designconst [value, setValue] = useState('');//把vaule的值存起来,方便其他地方用;const onChange = (value: any) => { setValue(value.target.value)}<Input value={value} onChange={onChange}/>react hookconst inputRef = useRef&原创 2022-05-23 01:03:17 · 282 阅读 · 0 评论