Function transform_component_code
Source pub fn transform_component_code(code: &str) -> Result<String, MdxError>
Expand description
Intelligently transforms component code (detects if it’s raw JSX or a function)
§Arguments
code - Component code (either raw JSX or a complete function)
§Returns
Generated JavaScript code or an error