React Custom Hook in Typescript example

In addition to the familiar Hooks like useState, useEffect, useRef…, React also allows us to create custom Hooks with unique features that extracts component logic into reusable functions. Let’s learn how to write a React Custom Hook for API call in Typescript through a simple useAxiosFetch example.

More Practice:
React Hook Form Typescript example with Validation
React Typescript and Axios with API call example
React Table example: CRUD App | react-table 7
React Hooks File Upload example with Axios & Progress Bar
React Typescript Authentication example with Hooks

Javascript version: React Custom Hook tutorial with example

Read More

Spring Boot + React Typescript example

In this tutorial, we will learn how to build a full stack Spring Boot + React Typescript example with a CRUD App. The back-end server uses Spring Boot with Spring Web MVC for REST APIs and Spring Data JPA for interacting with embedded database (H2 database). Front-end side is made with React Typescript, React Router, Axios & Bootstrap.

Related Posts:
React + Spring Boot: Pagination example
Spring Boot + React: Login example with JWT Authentication & Spring Security
React Upload/Download Files to/from Spring Boot Rest Apis
React Custom Hook in Typescript example

Run both projects in one place:
How to integrate React with Spring Boot

You can use one of following backend for other Databases:

Read More