来自 react-hook-form 的数据

Data from react-hook-form

有谁知道没有名字的React-hook-form数据怎么获取?例如:

目前数据是这样的:

{"message": "Fred Fliston"}

但是,我只是想得到名字:

Fred Fliston

有人可以帮助我吗?

嗯,我猜你是从文件中获取数据。

此时如果文件名为data,例如:

console.log(data.message[0)