小编Yeu*_*mmy的帖子

我可以使用 notion api 获取 notion 页面内容吗?

我计划使用 notion api 制作一些博客。

我想使用 notion api 将 notion 页面降价并显示在我的博客上。

但是,我找不到获取页面内容..

有没有办法使用api导入页面markdown内容?

notion-api notion

7
推荐指数
1
解决办法
6676
查看次数

如何解决 TypeError: path.split is not a function

现在我使用react-hook-form进行登录验证。

但是,当在 input 标签中输入ref={register}时,TypeError: path.split is not a function错误会继续发生 。

import React from 'react';
import {useForm} from "react-hook-form";
import './Auth.css';

export default function Register() {

    const {register, errors, watch} = useForm();

    return (
        <div>
            <form>
                <label>Email</label>
                <input type="email" name="email" ref={register({ required: true})} />
                <label>Password</label>
                <input type="password" />
                <label>Password Confirm</label>
                <input type="password"/>
                <input type="submit" />
            </form>
        </div>
    );
}

Run Code Online (Sandbox Code Playgroud)

即使我复制并粘贴了示例代码,也会出现同样的错误,我该如何解决呢?

错误代码如下。 在此处输入图片说明

typeerror reactjs react-hook-form

4
推荐指数
1
解决办法
2535
查看次数

标签 统计

notion ×1

notion-api ×1

react-hook-form ×1

reactjs ×1

typeerror ×1