Skip to content

Instantly share code, notes, and snippets.

View Tijani-zainab's full-sized avatar
🎯
Focusing

Zainab Tijani Tijani-zainab

🎯
Focusing
View GitHub Profile
@Tijani-zainab
Tijani-zainab / redact-js-program.html
Created July 28, 2022 20:28
simple JavaScript function that hides certain parts of a specified message
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>assignment</title>
</head>
<body>
@Tijani-zainab
Tijani-zainab / trychameleon technical
Last active July 27, 2022 13:02
technical exercise
##Refactor the code to use the latest function based components
import React, {PureComponent} from 'react';
import DropdownItem from "./DropdownItem/DropdownItem";
function Dropdown(props) {
const [isOpen, setIsOpen] = React.useState({isOpen: false});
function toggle() {