Skip to content

Latest commit

 

History

31 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to work with Api_Promises using axios and React router

Openweathermap API

Openweathermap is our api Openweather Website.

Trello

What we use to assign and know what tasks to do. Trello

Why we're using Axios

Axios is a library that helps us make http requests to external resources. In our React applications we often need to retrieve data from external APIs so it can be displayed in our web page.

Axios Features

Make XMLHttpRequests from the browser. Make http requests from node.js. Supports the Promise API. Intercept request and response.A Transform request and response data. Cancel requests. Automatic transforms for JSON data. Client side support for protecting against XSRF.

Difference between State and Props

"props" (short for "properties") is an object of arbitrary inputs a React function component accepts as the first argument. "state" is data that changes over the lifetime of a specific instance of a React component.

Route Component

The Route component is perhaps the most important component in React Router to understand and learn to use well. Its most basic responsibility is to render some UI when its path matches the current URL. For More Information On Route!.

Link Component (To: String)

A link component provides declarative, accessible navigation around your application. (to: string) A string representation of the Link location, created by concatenating the location’s pathname, search, and hash properties.For More Information On Link!.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages