随笔分类 -  react

react的相关学习
摘要:1.react中做的就是践行"代数效应" 代数效应:是函数编程中的一个概念,用于副作用从函数中分离。一个函数中的执行结果,与函数中的代数x,y,z有关,但是它只是关心结果,不关心过程。 function getName(user) { let name = user.name; if (name n 阅读全文
posted @ 2021-02-26 13:48 yaqian96 阅读(309) 评论(0) 推荐(0)
摘要:导航的代码 import React,{PureComponent,Component}from 'react'; import { StatusBar } from 'react-native' import {Button,Image} from 'react-native'; import { 阅读全文
posted @ 2020-11-03 15:16 yaqian96 阅读(159) 评论(0) 推荐(0)