Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Just build the dom in JS, like so: React.createElement( string/ReactClass type, [object props], [children ...] )


I haven't used React in a while, so maybe this has changed, but can't you just do something like

    component = React.createFactory(MyReactComponentClass);
    component(props, children);




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: