notebook
首页自定义链接
多级目录
  • 子菜单1
  • 子菜单2
首页自定义链接
多级目录
  • 子菜单1
  • 子菜单2
  1. 3cs
  • 目录
  • 1study
    • 9nuclear_english
    • moose
    • moose_analysis
    • NUSOL_FI_JFNK
    • relap5
    • relap5_analysis
  • 3cs
    • 0cs
    • 1android
    • 1linux
    • 1web
    • 1windows
    • 2cpp
    • 2html
    • 2javascript
    • 2shellscript
    • 3gitboook
    • 3markdown
    • 4gdb
    • 4git
    • 4mysql
    • 4regex
    • 5vim
    • 5vscode
  • 9me
    • 0read
    • 1book
    • test
  1. 3cs

2html

目录#

[TOC]
div 把一些标签内容嵌套进一个 box 里面
span 类似 div,但是内嵌 box,
箭头函数()=>(xxx)等效于()=> {return (xxx)},是隐式返回的函数,甚至可以简化()=>xxx
const Button = ({ handleClick, text }) => (
  <button onClick={handleClick}>{text}</button>
)


const Button = ({ handleClick, text }) => {
  return (<button onClick={handleClick}>{text}</button>)
}

修改于 2025-08-13 16:06:35
上一页
2cpp
下一页
2javascript
Built with