Skip to content

Commit a130140

Browse files
committed
fix javascript-components.rst
1 parent 09710e3 commit a130140

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/source/javascript-components.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -134,14 +134,14 @@ preparing any package that's been uploaded to NPM_. If you need to roll with you
134134
private CDN, this will likely be more complicated.
135135

136136
In either case though, on the Python side, things are quite simple. You need only pass
137-
the URL where your package can be found to :func:`~idom.web.module.module_from_file`
137+
the URL where your package can be found to :func:`~idom.web.module.module_from_url`
138138
where you can then load any of its exports:
139139

140140
.. code-block::
141141
142142
import idom
143143
144-
your_module = ido.web.module_from_file("https://some.cdn/your-module")
144+
your_module = ido.web.module_from_url("https://some.cdn/your-module")
145145
YourComponent = idom.web.export(your_module, "YourComponent")
146146
147147

0 commit comments

Comments
 (0)