File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -438,6 +438,14 @@ An `AssetCSS` instance has the following methods:
438
438
439
439
Returns a JSON representation of the ` AssetCSS ` instance.
440
440
441
+ ### .toJsxAttributes()
442
+
443
+ Returns a JSON representation of the ` AssetCSS ` instance ready for use in a JSX link tag
444
+
445
+ ``` jsx
446
+ < link {... css .toJsxAttributes ()} / >
447
+ ```
448
+
441
449
### .toHTML()
442
450
443
451
Returns an HTML ` <link> ` element as a string representation of the ` AssetCSS `
@@ -472,6 +480,14 @@ An `AssetJS` instance has the following methods:
472
480
473
481
Returns a JSON representation of the ` AssetJS ` instance.
474
482
483
+ ### .toJsxAttributes()
484
+
485
+ Returns a JSON representation of the ` AssetJS ` instance ready for use in a JSX script tag.
486
+
487
+ ``` jsx
488
+ < script {... js .toJsxAttributes ()}>< / script>
489
+ ```
490
+
475
491
### .toHTML()
476
492
477
493
Returns an HTML ` <script> ` element as a string representation of the ` AssetJS `
You can’t perform that action at this time.
0 commit comments