I am currently working on implementing a login/register modal in React, inspired by a TypeScript example I came across.
This is how the login section looks:
https://i.sstatic.net/ECvv9.png
The goal is to:
- When the "Sign up" button is clicked, it should trigger a transition where the orange section transforms into a signup form, and the left side turns into an orange layout for signing in.
Currently, I have managed to create the login layout, but clicking on the signup button is not producing any action.
At this point, the code is giving an error about this.container.current
not having a .current
.
Below is the provided code:
import React from "react";
import { Modal } from "react-bootstrap";
...
Additionally, here is the corresponding CSS:
h1 {
font-weight: bold;
margin: 0;
}
...
It seems like there is a small link missing to connect everything together and make it functional.
For reference, I started with the following codepen link: https://codepen.io/FlorinPop17/pen/vPKWjd