Tag: useEffect
Blockfrost API 403 Error in React Node JS app
I’m trying to get info about the latest block in my React Node JS app using Blockfrost and I’m running into an error: GET cors-anywhere.herokuapp.com/https://cardano-mainnet.blockfrost.io/api/blocks/latest 403 (Forbidden) Why is this…
reactjs – connect amqplib (RabbitMQ) react and typescript
install packages i.imgur.com/XfPg1p3.png try connect amqp with backend and get an error install “@types/amqplib”: “^0.8.2″,”amqplib”: “^0.8.0”, import amqp from ‘amqplib/callback_api’ const Notifications = ({ isMobile }:any):JSX.Element => { useEffect(() =>…
reactjs – How to test React.js page that uses Context and useEffect?
I’m having trouble testing a page that has Context and useEffect using Jest and Testing-library, can you help me? REPO: github.com/jefferson1104/padawan My Context: src/context/personContext.tsx import { createContext, ReactNode, useState }…