You can either get RxDeep via a NPM (or yarn or whatever other package manager you have) or get it directly via a CDN.
1linknpm i rxdeep
Now you can import
or require()
RxDeep functions in your JS/TS code:
1linkimport { state } from 'rxdeep';
1linkconst { state } = require('rxdeep');
The client-side bundles of RxDeep are provided alongside the published NPM package. You can fetch them via services such as UNPKG or jsDelivr. Note that you would also need RxJS bundle:
1link<script src="https://cdn.jsdelivr.net/npm/rxjs@6.6.0/bundles/rxjs.umd.min.js"></script>
2link<script src="https://cdn.jsdelivr.net/npm/rxdeep@0.2.0/dist/bundles/rxdeep.es6.min.js"></script>
Fetching the bundle via CDN defines the global variable rxdeep
, containing all methods
and classes:
1link<script>
2linkconst { state } = rxdeep;
3link
4linkconst s = state(42);
5link// ...
6link</script>