我用一个参数编写了一些函数。我想执行相同的步骤,但现在要从宏执行。我该怎么办?
我想在“注释行”中激活该功能
import React, { Component } from 'react';
import './App.css';
import Todos from './Components/Todos';
function App() {
state = {
todos:[
{
id:1,
title: "Study File Structure",
completed:false
},
{
id:2,
title: "Create Component",
completed:false
},
{
id:3,
title: "Study State",
completed:false
}
]
}
return (
<div className="App">
<h1>Hello</h1>
<Todos/>
</div>
);
}
export default App;