摘要: function A() { return (<> This is A component </>) } function B() { let msg = useContext(MsgContext); return (<> This is B component:::: {msg} </>) } 阅读全文
posted @ 2023-11-05 16:46 Felix_Openmind 阅读(50) 评论(0) 推荐(0)
摘要: 代码案例 function A({ onGetAName }) { const name = `> ${new Date().getTime()} <`; return ( <div> This is A component ! {/*箭头函数形式来调用事件函数*/} <button onClick 阅读全文
posted @ 2023-11-05 16:28 Felix_Openmind 阅读(25) 评论(0) 推荐(0)
*{cursor: url(https://files-cdn.cnblogs.com/files/morango/fish-cursor.ico),auto;}