JonAbrams/SpaceAce

Is it possible to run SpaceAce directly on the browser?

smartITNinja opened this issue · 2 comments

Let's suppose I add SpaceAce via CDN:

<script src="//unpkg.com/spaceace"></script>

Is it possible to run it directly on the browser as I can do with VueX and/or Redux for instance?
(I mean, without using any CLI or webpack, etc at all)

Thanks

Yes, it should just work, it'll add Space to the global scope. Let me know if it doesn't work.

To further elaborate, you'd create spaces like this:

const rootSpace = new Space({});

Space.subscribe(rootSpace, ({ newSpace }) => {
  
});