From 9262f0bd8aa3883a36b6ea9c876a025d5aeaccce Mon Sep 17 00:00:00 2001 From: Andrew Burgess Date: Mon, 6 Feb 2017 18:16:14 -0500 Subject: [PATCH] changed usage example to match API (as used in /test examples) --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 52f3b36..0a6006b 100644 --- a/README.md +++ b/README.md @@ -48,8 +48,9 @@ The `worker.js` file is the one that now holds the actual Component. ```js // File: worker.jsx - loaded in index.html using new Worker('worker.jsx') in the file script above; import React from 'react'; -import ReactWorkerDOM from 'react-worker-dom/worker'; -ReactWorkerDOM.render(); +import ReactDOM from 'react-dom'; +import WorkerDOM from 'react-worker-dom/worker'; +ReactDOM.render(, WorkerDOM); ``` Look at `test\dbmonster` and `test\todoapp` directory for the examples.