[英]Data from react-hook-form
does anyone know how to get the React-hook-form data without the name?有谁知道如何在没有名称的情况下获取 React-hook-form 数据? For example:
例如:
Currently the data comes like this:目前数据是这样的:
{"message": "Fred Fliston"}
But, I just wanted to get the name:但是,我只是想得到这个名字:
Fred Fliston
Can someone help me?有人能帮我吗?
Well I guess that you fetch the data from a file.好吧,我猜你是从文件中获取数据。
In this case, if the file name is data, for example:在这种情况下,如果文件名为数据,例如:
console.log(data.message[0)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.