use genco::fmt; use genco::prelude::*; fn main() -> anyhow::Result<()> { let react = &js::import("react", "React").into_default(); let display = &js::import("./Display", "Display").into_default(); let button_panel = &js::import("./ButtonPanel", "ButtonPanel").into_default(); let calculate = &js::import("../logic/calculate", "calculate").into_default(); let tokens = quote! { export default class App extends $react.Component { state = { total: null, next: null, operation: null, }; handleClick = buttonName => { this.setState($calculate(this.state, buttonName)); }; render() { return (