single-spa / single-spa-examples

Examples of single-spa applications.
https://single-spa.surge.sh
MIT License
359 stars 128 forks source link

Create example for cycle js #41

Open joeldenning opened 7 years ago

joeldenning commented 7 years ago

Now that @pcmnac has created the helper library https://github.com/pcmnac/single-spa-cycle, we should add cyclejs to single-spa-examples.

pcmnac commented 7 years ago

Hello @joeldenning . You can start from here (https://github.com/pcmnac/single-spa-cycle-child-example). It's a simple app using Cycle.js with JSX. I tried to put it together with simple-single-spa-webpack-example but when I started to use JSX it started to conflict with the React example. So I moved my child app to a separated project and started importing the webpack bundle in the root app.

...
singleSpa.declareChildApplication('app-3', () => import('../../../single-spa-cycle-child-example/dist/cycle-child-example.js'), hashPrefix('/app3'));
...

It worked in that way. Feel free to make any considerations. []'s

filoxo commented 5 years ago

This was resolved in https://github.com/CanopyTax/single-spa-examples/pull/56.