Skip to main content

component

Function component 

Source
pub fn component<F>(render_fn: F) -> FnComponent<F>
where F: Fn(&GA3) -> Element + Send + Sync,
Expand description

Create a function component from a closure.