【发布时间】:2019-04-08 10:11:09
【问题描述】:
使用 https://aws-amplify.github.io/media/ui_library 构建身份验证 UI
import { Authenticator } from 'aws-amplify-react'
import Amplify from 'aws-amplify';
Amplify.configure(aws_exports);
const AppWithAuth = () => (
<Authenticator />
)
https://aws-amplify.github.io/docs/js/authentication#using-the-authenticator-component-directly
使用 React Developer Tools 进行检查,组件在 React View 中可见
所以,Authenticator 的各种组件,如 Greetings 和 SignIn 并没有出现在 DOM 中。如何让它们在浏览器中可见
【问题讨论】:
-
嗨,Shorn Jacob!您是否设法解决了这个问题?
标签: reactjs aws-amplify