diff --git a/README.md b/README.md index 8468f3e..45eea58 100644 --- a/README.md +++ b/README.md @@ -10,9 +10,9 @@ I opted to use the CDN prebuilt distribution and not the `npm` package since tha git clone https://github.com/thheller/reagent-pdfjs.git cd reagent-pdfjs npm install -npx shadow-cljs watch app +npx shadow-cljs watch demo ``` Wait for "Build completed." and open `http://localhost:8400` in your Browser. You should see a "Hello World" pdf displayed. -This example shows how to use React `useRef` in combination with `useEffect` to interop with foreign DOM libraries that don't use the React/reagent rendering model. It applies to many other libraries (eg. d3) in the same way. Create a DOM node, add a ref and use that via within the `useEffect` callback. Sometimes it may be necessary to "clean up" after yourself in that hook. Couldn't find anything about that in the pdf.js docs, so I only added a log where you'd do it. \ No newline at end of file +This example shows how to use React `useRef` in combination with `useEffect` to interop with foreign DOM libraries that don't use the React/reagent rendering model. It applies to many other libraries (eg. d3) in the same way. Create a DOM node, add a ref and use that via within the `useEffect` callback. Sometimes it may be necessary to "clean up" after yourself in that hook. Couldn't find anything about that in the pdf.js docs, so I only added a log where you'd do it.