icestark
icestark copied to clipboard
How to use injection props
Background
There is no other way to pass the injection argument to a sandbox. It may go like this:
new Sandbox({
injection: {
a: 'a'
},
// other arguments
})
As a result, one can pass injection like:
<AppRoute
sandbox={{ injection }}
>
</AppRoute>