Access host context with automatic re-renders on changes
Current host context
function ThemedComponent() { const context = useHostContext(); return ( <div className={context.theme}> Display: {context.displayMode} </div> );} Copy
function ThemedComponent() { const context = useHostContext(); return ( <div className={context.theme}> Display: {context.displayMode} </div> );}
Access host context with automatic re-renders on changes