doc: create onClick method with prevent default added
This commit is contained in:
1 parent
952e45bdb1
commit
323c5c61df
1 file changed
+9
-1
+9
-1
@@ -9,6 +9,10 @@ function Login() {
|
|||||||
const signIn = (e) => {
|
const signIn = (e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const register = (e) => {
|
||||||
|
e.preventDefault();
|
||||||
|
};
|
||||||
return (
|
return (
|
||||||
<section className="login">
|
<section className="login">
|
||||||
<Link to="/">
|
<Link to="/">
|
||||||
@@ -50,7 +54,11 @@ function Login() {
|
|||||||
Interest-Based Ads Notice.
|
Interest-Based Ads Notice.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<button className="login__registerButton">
|
<button
|
||||||
|
className="login__registerButton"
|
||||||
|
type="button"
|
||||||
|
onClick={register}
|
||||||
|
>
|
||||||
Create your Amazon Account
|
Create your Amazon Account
|
||||||
</button>
|
</button>
|
||||||
</article>
|
</article>
|
||||||
|
|||||||
Reference in new issue
Block a user