Skip to content

Commit

Permalink
Merge pull request #9 from joeinnes/patch-1
Browse files Browse the repository at this point in the history
More verbose example
  • Loading branch information
KidkArolis committed Aug 3, 2020
2 parents 2df0fae + 5454ea6 commit 89a1a05
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions docs/content/_index.md
Expand Up @@ -54,13 +54,21 @@ $ npm install figbird

```js
import React, { useState } from 'react'
import createFeathersClient from '@feathersjs/feathers'
import io from 'socket.io-client'
import feathers from '@feathersjs/client'
import { Provider, useFind } from 'figbird'

const socket = io('http://localhost:3030')
const client = feathers()

client.configure(feathers.socketio(socket))
client.configure(feathers.authentication({
storage: window.localStorage
}))

function App() {
const [feathers] = useState(() => createFeathersClient())
return (
<Provider feathers={feathers}>
<Provider feathers={client}>
<Notes />
</Provider>
)
Expand Down

0 comments on commit 89a1a05

Please sign in to comment.