Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Ayodele S. Adebayo unclebay143

🎯
Focusing
View GitHub Profile
@unclebay143
unclebay143 / Map.jsx
Created December 19, 2022 15:47
Building Maps in React with react-leaflet Library
View Map.jsx
import React from "react";
import { MapContainer, Marker, Popup, TileLayer } from "react-leaflet";
import { Icon } from "leaflet";
export const Map = () => {
const position = [8.1386, 5.1026];
const zoomLevel = 15;
const swimmingSpot = new Icon({
iconUrl: "/images/computer-solid.svg",
View Building the NFT Chain Radio Component
import React, { useState, useEffect } from "react";
import Moralis from "moralis";
import { NftSearchBar } from "../components/Nfts/NftSearchBar";
import { NftCardContainer } from "../components/Nfts/NftCardContainer";
export const NftExplore = ({ settheme }) => {
// 1. loading state
const [loading, setLoading] = useState(false);
// 2. The search query state
@unclebay143
unclebay143 / complete_todo_list_api_code.js
Last active November 28, 2021 18:34
FULL TODO LIST BACKEND CODE
View complete_todo_list_api_code.js
// import express
const express = require('express');
const app = express();
//Parse URL-encoded bodies - Allows
app.use(express.urlencoded({ extended: true }));
app.use(express.json());
// import cors
var cors = require('cors');