map_components

Function map_components 

Source
pub fn map_components(components: Vec<Html>) -> Vec<Html> โ“˜
Expand description

Reduces a vector of HTML components by flattening and filtering out duplicates.

ยงExample

use next_rs::head::{map_components, default_head};

let components = vec![default_head()];
let new_components = map_components(components);