1.2.19 • Published 11 months ago
andoncloud-dashboard-toolkit v1.2.19
dashboard-toolkit
Made with create-react-library
Install
npm install --save dashboard-toolkit
Usage
import React, { useEffect, useState } from 'react'
import { GraphQLClient } from 'graphql-request'
import type { User } from 'dashboard-toolkit'
import { getSdk } from 'dashboard-toolkit'
const App = () => {
const [users, setUsers] = useState<User[]>([])
const client = new GraphQLClient('http://localhost:4000/graphql')
const sdk = getSdk(client)
useEffect(() => {
sdk.users().then((data) => {
setUsers(data.users)
})
}, [sdk])
return (
<div>
{users.map((user: User) => (
<p key={user.id}>{user.name}</p>
))}
</div>
)
}
export default App
License
1.2.18
11 months ago
1.2.19
11 months ago
1.2.16
11 months ago
1.2.15
11 months ago
1.2.8
12 months ago
1.2.7
1 year ago
1.2.9
12 months ago
1.2.12
12 months ago
1.2.13
12 months ago
1.2.10
12 months ago
1.2.11
12 months ago
1.2.14
12 months ago
1.2.6
1 year ago
1.2.5
1 year ago
1.2.4
1 year ago
1.2.3
1 year ago
1.2.0
2 years ago
1.1.6
2 years ago
1.2.2
2 years ago
1.2.1
2 years ago
1.1.1
2 years ago
1.1.0
2 years ago
1.0.16
2 years ago
1.0.9
2 years ago
1.1.5
2 years ago
1.1.4
2 years ago
1.1.3
2 years ago
1.1.2
2 years ago
1.0.11
2 years ago
1.0.10
2 years ago
1.0.15
2 years ago
1.0.14
2 years ago
1.0.13
2 years ago
1.0.12
2 years ago
1.0.8
2 years ago
1.0.7
2 years ago
1.0.6
2 years ago
1.0.5
2 years ago
1.0.4
2 years ago
1.0.3
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago