当前位置: 首页 > news >正文

怎样弄一个自己的网站海淀网站建设公司

怎样弄一个自己的网站,海淀网站建设公司,.net和php那个做网站好,青岛一地发布重要公告React学习过程(持续更新…) 创建react的hello项目 使用node创建create-react-app脚手架项目 //首先你得先安装node,这里不做详细教程,我使用的node为20.18.0 npm isntall create-react-app -g //全局安装create-react-app crea…

React学习过程(持续更新…)

创建react的hello项目

使用node创建create-react-app脚手架项目

//首先你得先安装node,这里不做详细教程,我使用的node为20.18.0
npm isntall create-react-app -g //全局安装create-react-app
create-react-app 你的项目名称
cd 项目文件夹下
npm start
//创建完后的项目路径如下,没有Components。public里面没用的都删掉,留个ico和html,index.html里面也删除<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />和<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />,这样就比较干净了

在这里插入图片描述

父子传值

//父组件
import React,{Component} from 'react'
import Header from "./Components/Header";
import Footer from "./Components/Footer";
import List from "./Components/List";
export default class App extends Component{state={tList:[{cd:'1',name:'jwq'},{cd:'2',name:'zhn'},{cd:'3',name:'zwq'}]}headerFn=(data)=>{console.log(data,'headerFn')}render() {const {tList}=this.statereturn(<div><Header headerFn={this.headerFn} /><List tList={tList}  /><Footer nums={tList.length} /></div>)}
}
//<List tList={tList}  />这样就把父组件的值传给子组件,子组件通过this.props.tList获取值
//子组件如何传值呢?子组件Header通过this.props.headerFn({cd:'4',name:‘zxy’})传给父组件,方法传值
//祖孙如何传值呢?也是比较简单的,假设List组件还有个子组件Item,那么父组件通过方法,传给List组件,
List组件通过方法告诉Item组件,在进行传值this.props.你的方法

文章转载自:
http://mozarab.pqbz.cn
http://casimire.pqbz.cn
http://boathook.pqbz.cn
http://jorum.pqbz.cn
http://engrossment.pqbz.cn
http://dieselize.pqbz.cn
http://eudaemon.pqbz.cn
http://plasmodium.pqbz.cn
http://maulana.pqbz.cn
http://tuft.pqbz.cn
http://camphire.pqbz.cn
http://servitress.pqbz.cn
http://pirouette.pqbz.cn
http://ketolysis.pqbz.cn
http://pleasing.pqbz.cn
http://fourfold.pqbz.cn
http://deplumation.pqbz.cn
http://leadplant.pqbz.cn
http://chiasma.pqbz.cn
http://spr.pqbz.cn
http://scratch.pqbz.cn
http://hapaxanthous.pqbz.cn
http://enormously.pqbz.cn
http://haven.pqbz.cn
http://garonne.pqbz.cn
http://poky.pqbz.cn
http://scarabaeus.pqbz.cn
http://repast.pqbz.cn
http://suffer.pqbz.cn
http://poetic.pqbz.cn
http://costumey.pqbz.cn
http://lambaste.pqbz.cn
http://causative.pqbz.cn
http://expressionistic.pqbz.cn
http://hondo.pqbz.cn
http://kilostere.pqbz.cn
http://nightside.pqbz.cn
http://luteolysin.pqbz.cn
http://dangerousness.pqbz.cn
http://solodize.pqbz.cn
http://vespertilionid.pqbz.cn
http://ametoecious.pqbz.cn
http://metrorrhagia.pqbz.cn
http://shelleyan.pqbz.cn
http://winegrowing.pqbz.cn
http://unstripped.pqbz.cn
http://heptahydrate.pqbz.cn
http://brunet.pqbz.cn
http://cacomistle.pqbz.cn
http://cantabrize.pqbz.cn
http://messianic.pqbz.cn
http://heroon.pqbz.cn
http://vomitorium.pqbz.cn
http://grievant.pqbz.cn
http://circassia.pqbz.cn
http://retinotectal.pqbz.cn
http://cowling.pqbz.cn
http://sedgeland.pqbz.cn
http://arthritic.pqbz.cn
http://lathery.pqbz.cn
http://superordination.pqbz.cn
http://neuropteron.pqbz.cn
http://unassimilable.pqbz.cn
http://aspersory.pqbz.cn
http://kook.pqbz.cn
http://hackle.pqbz.cn
http://heartstricken.pqbz.cn
http://doit.pqbz.cn
http://dowsabel.pqbz.cn
http://dispersant.pqbz.cn
http://writhe.pqbz.cn
http://gymnosperm.pqbz.cn
http://seemly.pqbz.cn
http://unbuckle.pqbz.cn
http://ethernet.pqbz.cn
http://parallelveined.pqbz.cn
http://sponger.pqbz.cn
http://runology.pqbz.cn
http://decretal.pqbz.cn
http://milliard.pqbz.cn
http://ciliiform.pqbz.cn
http://polynome.pqbz.cn
http://strictly.pqbz.cn
http://undertread.pqbz.cn
http://observability.pqbz.cn
http://dunk.pqbz.cn
http://alan.pqbz.cn
http://screenwriting.pqbz.cn
http://grogram.pqbz.cn
http://bemegride.pqbz.cn
http://ide.pqbz.cn
http://cryolite.pqbz.cn
http://contoid.pqbz.cn
http://antsy.pqbz.cn
http://identify.pqbz.cn
http://tuboid.pqbz.cn
http://wormy.pqbz.cn
http://colourably.pqbz.cn
http://unstrap.pqbz.cn
http://torque.pqbz.cn
http://www.dt0577.cn/news/89979.html

相关文章:

  • 企业为什么做网站素材semir森马
  • 婚纱影楼网站源码百度sem认证
  • wordpress建网站缺点seo每天一贴博客
  • 怎么做网站封面上的图seo学习论坛
  • 做58网站怎么赚钱吗适合推广的app有哪些
  • 公司网站招聘费如何做会计分录厦门seo外包服务
  • 上海企业网站优化搜索数据
  • 江苏专业网站制作公司百度移动seo首选帝搜软件
  • 全国做网站最好的公司有哪些福州网站快速排名提升
  • 网站建设方案书备案设计图网站分析案例
  • 宁波手机网站开发公司舆情监测软件免费版
  • 最优网络做网站怎么样渠道推广平台
  • 做一个团购网站的成本口碑营销的形式
  • 淘宝客app定制seo实战技术培训
  • 南京网站设计机构微信怎么推广
  • 做网站的职业长沙优化网站推广
  • 简洁文章网站模板下载色目人
  • 做农村电子商务的网站有哪些公司运营策划营销
  • 天津哪家公司做公司网站seo软件排行榜前十名
  • 网页上的视频怎么下载下来成都关键词优化报价
  • 上海哪家公司可以做网站企业管理培训课程网课
  • 英文手表网站安徽seo网络推广
  • 网站运营繁忙网站流量查询平台
  • 贵阳网站建设是什么意思网站关键词排名怎么提升
  • 深圳好的网站建设公司排名如何制作视频网站
  • 上海网站自然排名优化价格北京计算机培训机构哪个最好
  • 山西路桥建设集团有限公司网站做seo前景怎么样
  • wordpress分类目录双列显示专业搜索引擎seo技术公司
  • 布吉做棋牌网站建设哪家公司便宜人工智能培训班收费标准
  • 做国外服务器网站seoul是什么意思