Posts by lpmezuraro • 31 points
4 posts
-
0
votes1
answer42
viewsA: Nodejs - pass a function in the format of Privileges to async await
Hello, good morning, kindly follow a possible solution... exports.getDashboard = async(req, res, next) => { const category = req.query.category; const validCategories = ["Computadores",…
-
0
votes1
answer49
viewsA: Map 2 jsons and render in 1 card component + date formatting
A possible resolution would be: App.js import React, { useState, useEffect } from "react"; import "./styles.css"; import axios from "axios"; import PostCard from "./PostCard"; export default…
-
0
votes2
answers465
viewsA: Hide a Navbar item in React JS according to the page
There is a window function that can help you with this first approach. It would be window.location.pathname. it returns the endpoint the browser is in. {window.location.pathname !== "/login" ?…
-
0
votes1
answer68
viewsA: How to calculate total currencies - java
Hello @En.Fabiano, good afternoon. Follow a possible approach, package stackoverflow; public class ControleMoedas { private String nomeTitular; private int qtde1c; private int qtde5c; private int…
javaanswered lpmezuraro 31