📜  react-tournament-ready - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:00.593000             🧑  作者: Mango

代码示例1
import {createBracket,insertScore} from 'react-tournament-ready'

const teams = [
    {
        name:"",
      id:""
    }
]

const newBracket = createBracket(teams)

const modifiedBracket = insertScore(teams[0],{score: 12},newBracket)