This guide will help you let a user signup/login with email, without any of our UI components. We’ve split the guide into two tabs as you’ll see below. The first uses our SDK hooks (but none of the UI components) - we recommend this choice if you can. The second tab shows you how to handle email login without any SDK interaction at all i.e. API only.
Let’s start by installing our packages. Follow our Quickstart guide for a detailed walkthrough.When you’re done, we’ll update our App.js to include our environment ID in the setup and import the DynamicContextProvider and EthereumWalletConnectors.You app.js file should look like this (note that we are only importing the EthereumWalletConnectors for now):
Copy
Ask AI
import { DynamicContextProvider } from '@dynamic-labs/sdk-react-core';import { EthereumWalletConnectors } from "@dynamic-labs/ethereum";// Placeholder for our SMS signup/login form componentimport ConnectWithEmailView from './ConnectWithEmailView';function App() { return ( <div className="App"> <DynamicContextProvider settings={{ environmentId: "YOUR_ENVIRONMENT_ID_GOES_HERE", walletConnectors: [ EthereumWalletConnectors ], }} > <ConnectWithEmailView /> </DynamicContextProvider> </div> );}export default App;