In a class extend component a const state = [] would work. how do i do similar in a function app() component?

后端 未结 0 1536
死守一世寂寞
死守一世寂寞 2020-12-04 02:29

example:

function App() {

  const state = {
 const state = { Persons: [ { name: \'Stian\', age: 32 }, { name: \'Kaja\', age: 29 }, { name: \'Oliver\', age: 3         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题