Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to render React component instead of using render() on Module.php. #678

Open
anranik opened this issue Mar 6, 2024 · 0 comments
Open

Comments

@anranik
Copy link

anranik commented Mar 6, 2024

Problem Description

Basically I wanna develop an extension, I created the working version with react which is working on live edit. Now I wanna use same react component for the frontend content as well.

##something like
do_shortcode('[react_component module_slug="my_extension_slud" __data="%s" custom_class="%s"]',
esc_attr(json_encode($this->props['__main_data'])),
esc_attr($custom_class)
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant