- Download the latest zsh package: https://packages.msys2.org/package/zsh?repo=msys&variant=x86_64
Example:
zsh-5.7.1-1-x86_64.pkg.tar.xz
// db.js | |
const MongoClient = require("mongodb").MongoClient; | |
const url = "YOUR_URL"; | |
var client; | |
const getClient = async () => { | |
if (client && client.isConnected()) { | |
console.log("DB CLIENT ALREADY CONNECTED"); |
// routes/someroute.js | |
const express = require("express"); | |
const router = express.Router(); | |
const getClient = require("../db"); | |
router.get("/", async (req, res) => { | |
try { | |
const client = await getClient(); | |
const db = client.db("YOUR_BD_NAME"); | |
const collection = db.collection("YOUR_COLLECTION_NAME"); |
// HistoryListener.js | |
import React, { useEffect, useState } from "react"; | |
import { connect } from "react-redux"; | |
import { useHistory } from "react-router-dom"; | |
import { someAction } from "./../redux/someReducer/actions"; | |
const HistoryListener = ({ | |
children, | |
// MDTP |
Example:
zsh-5.7.1-1-x86_64.pkg.tar.xz
import { FormControl, Input } from 'native-base' | |
import React from 'react' | |
import { | |
Control, | |
Controller, | |
FieldError, | |
Path, | |
RegisterOptions, | |
} from 'react-hook-form' |