1.4.0 • Published 2 years ago
bit-react-use-api v1.4.0
bit-react-use-api
This project was bootstrapped with bit-react-use-api.
Available Scripts
In the project directory, you can run:
Installation:
npm install bit-react-use-api
--save-dev
or
yarn add -D bit-react-use-api
Usage :
import React from "react";
import ReactDOM from "react-dom/client";
import {
getHotelsData,
store,
useAppSelector,
useAppDispatch,
} from "bit-react-use-api";
const MyApp = (id) => {
const dispatch = useAppDispatch(),
const hotel = useAppSelector(state=> state)
console.log(hotel,'hotel)
useEffect(() => {
dispatch(getHotelsData(1));
});
return (
<div>
<p>
{hotel?.hotel_name} {id}
</p>
</div>
);
};
export default MyApp;
1.3.7
2 years ago
1.3.6
2 years ago
1.4.0
2 years ago
1.3.8
2 years ago
1.2.8
2 years ago
1.2.7
2 years ago
1.3.5
2 years ago
1.2.6
2 years ago
1.3.4
2 years ago
1.3.3
2 years ago
1.3.2
2 years ago
1.3.1
2 years ago
1.2.9
2 years ago
1.2.5
2 years ago
1.2.4
2 years ago
1.1.4
2 years ago
1.1.3
2 years ago
1.1.2
2 years ago
1.1.1
2 years ago
1.1.0
2 years ago
0.1.2
2 years ago
0.1.1
2 years ago
0.1.0
2 years ago