1.0.0 • Published 4 years ago
react-skbase-hooks v1.0.0
Skbase
Project
Created to help React developers that uses Skbase. Adds for now just one hook, but in the future there are going to be more.
Installation
#npm
npm install --save react-skbase-hooks
#yarn
yarn add react-skbase-hooks
Documentation
import SkbaseHooks from "react-skbase-hooks";
List of functionabilities
useTableData
const [values, loading] = useTableData("NAME");
Uses the table data returning values and loading
Requires:
NAME
: The table name
Full example
import { useTableData } from "react-skbase-hooks";
const Component = () => {
const [values, loading] = useTableData("users");
return (
<div>{loading ? "Loading..." : `Users: ${JSON.stringify(values)}`}</div>
);
};
export default Component;
License
- See LICENSE
1.0.0
4 years ago