0.1.2 • Published 7 months ago
jsonapi-data v0.1.2
JsonApi React Component
JsonApi
is a simple React component for making API requests and displaying the response data in json formate.
Installation
You can install JsonApi
using npm:
npm install JsonApi
Usage To use JsonApi in your React application, import it and include it in your JSX code.
import React from 'react';
import { JsonApi } from 'jsonpi';
function App() {
return (
<div>
<JsonApi />
</div>
);
}
export default App;
Props JsonApi does not accept any props.
Features Allows users to input an API URL. Fetches data from the provided API URL using Axios. Displays the API response data in a JSON format.
Development If you want to contribute to the development of jsonapi, you can clone the repository and set up the development environment as follows:
Clone the repository: git clone https://github.com/bharat_gareja/jsonapi.git
Install the dependencies cd jsonapi npm install
Start the development server: npm start