Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion src/components/EyesOnMe.js
Original file line number Diff line number Diff line change
@@ -1 +1,14 @@
// Code EyesOnMe Component Here
import React from "react";

const EyesOnMe = () => {
const focus = () => console.log("Good!");
const blur = () => console.log("Hey! Eyes on me!");
Comment on lines +4 to +5

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const focus = () => console.log("Good!");
const blur = () => console.log("Hey! Eyes on me!");
const handleFocus = () => console.log("Good!");
const handleBlur = () => console.log("Hey! Eyes on me!");


return (
<button onFocus={focus} onBlur={blur}>
"Eyes on me"
</button>
);
};

export default EyesOnMe;
14 changes: 7 additions & 7 deletions src/components/Keypad.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// Code Keypad Component Here
import React from "react";

function Keypad (){
return (
<div></div>
)
}
const Keypad = () => {
const handleChange = (event) => console.log("Entering password...");

export default Keypad;
return <input type="password" onChange={handleChange}></input>;
};

export default Keypad;