Posts by Mateus Queirós • 45 points
3 posts
-
1
votes1
answer30
viewsQ: Control inputs React
I have a component that renders a Material-ui Switch-style checkbox. The code is this: import styles from './styles.module.scss'; import { useState } from 'react'; import { handleInputsRelativeIds }…
-
1
votes0
answers154
viewsQ: Handle errors in Next.js and Axios
I’m making a Next.js application that uses Axios to make requests. The information I use of the API is coming normally but I would like to handle the returned errors better. Currently my code only…
-
1
votes1
answer127
viewsQ: Array map and asynchronous functions
I’m using the function getStaticProps from Next.js and Axios to pick up news from Hacker News. My goal is to access the API that returns the main stories of the day (which returns a unique id of…