Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Npm Packaging #5

Open
pjago opened this issue Jan 2, 2016 · 3 comments
Open

Npm Packaging #5

pjago opened this issue Jan 2, 2016 · 3 comments

Comments

@pjago
Copy link

pjago commented Jan 2, 2016

Hi. I am somewhat new to javascript and I having trouble in figuring out how to adapt my code to run as your example. I appreciate how simple it seems in the Readme, and similar to what I get from react-dom. I was thinking if you were considering to interface this repository somewhat like:

npm install --save react-worker-dom

//Worker.js
import React from 'react';
import {render} from 'react-worker-dom';
import App from './src/App';
render(<App/>);
//Page.js
import ReactWorker from 'react-worker-dom';
import Worker from "worker!./Worker";
ReactWorker( Worker(), document.getElementById("root") );

and them just run webpack/babel on Page.js?

@axemclion
Copy link
Member

@pedro-iago I am reworking the app so that it can be packaged .

@victorporof
Copy link

Any progress with this?

@axemclion
Copy link
Member

@oskarer asked me about this too. Looks like they are using it, so will collaborate with them to publish it on npm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants