[Vuejs]-Vue.js โ€“ access parent property in child render function with JSX syntax

0๐Ÿ‘

โœ…

I found solution for child component. Maybe it someone helps.

render(h) {
    return (
        <AjaxLoader url="/api/fetch/some/data">
            {(props) => <div> {props.result} </div>}
        </AjaxLoader>
    );
},

Leave a comment