How to connect js-ipfs to ipld to fetch some ipld data

The repo has some good example how to use the hashmap with the memory store, like

const store = {
  map: new Map(),
  get (k) { return },
  put (k, v) {, v) }

This will store/retrieve the data from a memory structure, I would like to connect with a real ipfs localhost. Could someone please guide me with a sample code how to replace that memory store with put and get to store and retrieve using js-ipfs

Thanks :slight_smile: