Open in app

Sign in

Write

Sign in

Danilo Rivera
Danilo Rivera

15 Followers

Home

About

Jun 16

Creating a custom Hook to make requests using React + Axios + TypeScript

We will always need to make calls for our project, so it’s good to have this logic that will be repeated a lot in a Hook. This will allow us to save time and be efficient when making our requests. For that, we based on GraphQL, , we destructure useQuery…

React

3 min read

Creating a custom Hook to make requests using React + Axios + TypeScript
Creating a custom Hook to make requests using React + Axios + TypeScript
React

3 min read


Feb 21

Use ChatGPT+React to create a chatbot (easy)

Before starting we must create an account at https://platform.openai.com/ and then once we start the session an api key will be required, for this we will do it in the following link: https://platform.openai.com/ docs/quickstart/build-your-application. now we must create our project in react and install the following dependencies: $ npx create-react-app…

React

4 min read

Use ChatGPT+React to create a chatbot (easy)
Use ChatGPT+React to create a chatbot (easy)
React

4 min read


Jan 13, 2021

React autocomplete search input (Debounce)

Another highly requested feature, this one consists of: According to what the user types in an input, we must show suggestions that are in our database. It is usually used in e commerces, since it allows to improve the user experience and have faster purchases. for our example we will…

React

4 min read

React autocomplete search input (Debounce)
React autocomplete search input (Debounce)
React

4 min read


Jan 10, 2021

Fill select options depending on other select field using axios, react hook form and jsonplaceholder API

a classic problem for developers, They give us a list of states, from which state the user chooses we will show the cities, and within the cities another element. today we will do something similar using jsonplaceholder: what is jsonplaceholder? It is a free api to use, which will allow us…

React Hook Form

3 min read

Fill select options depending on other select field using axios, react hook form and…
Fill select options depending on other select field using axios, react hook form and…
React Hook Form

3 min read


Dec 29, 2020

Scroll To Top Button using React

In several Ecommerces, blogs we see the function of an infinite scroll but suddenly we get bored of going down. then the problem is to return to the top, we must make a gigantic scroll or in the case of the mobile it becomes heavier. the simple solution: a scroll…

React

2 min read

Scroll To Top Button using React
Scroll To Top Button using React
React

2 min read


Dec 28, 2020

Create a Switch in React as a Reusable Component

in some occasions this component can come with our framework in others not, many people will say “I can download a package to solve it”, but we can really solve it with custom code and customize it to our need. For this solution we will use styled components. why? Freddom…

React

2 min read

Create a Switch in React as a Reusable Component
Create a Switch in React as a Reusable Component
React

2 min read


Published in

Better Programming

·Jun 28, 2020

Create a Letter Picture Like Google Does With React

Add a nice default image for users without profile pictures — Imagine that your next request is to perform this function: If the user does not have a profile image, the system must take their name and create an image from their initials in the purest Google style. You say it is possible, but you still have no idea how. …

React

4 min read

Create a Letter Picture Like Google Does With React
Create a Letter Picture Like Google Does With React
React

4 min read


Jun 19, 2020

Create a custom drawer with React/Javascript

Before we begin, we must clarify a few things.Ant Desing, Material Ui, by default bring this component to make use of it. The only objective of this post is to show you how to make yours and learn a little more about react / javascript in the process. So, what is a drawer? he drawer…

React

4 min read

Create a custom drawer with React/Javascript
Create a custom drawer with React/Javascript
React

4 min read


Jun 11, 2020

Make your first form with React Hook Form and Ant Design

why use react hook form: · React Hook Form is a tiny library without any dependencies. · Minimizes the number of re-renders and faster mounting, striving to provide the best user experience. · very simple to use the first thing we will need is, install the dependencies to use npm…

React

3 min read

Make your first form with React Hook Form and Ant Design
Make your first form with React Hook Form and Ant Design
React

3 min read

Danilo Rivera

Danilo Rivera

15 Followers

Help

Status

About

Careers

Blog

Privacy

Terms

Text to speech

Teams