Create a new script tag in the head
(&self, props: ScriptProps)
| 136 | |
| 137 | /// Create a new script tag in the head |
| 138 | fn create_script(&self, props: ScriptProps) { |
| 139 | queue_effect(move || { |
| 140 | _ = append_element_to_head( |
| 141 | "script", |
| 142 | &props.attributes(), |
| 143 | props.script_contents().ok().as_deref(), |
| 144 | ); |
| 145 | }); |
| 146 | } |
| 147 | |
| 148 | /// Create a new style tag in the head |
| 149 | fn create_style(&self, props: StyleProps) { |
nothing calls this directly
no test coverage detected