-
Notifications
You must be signed in to change notification settings - Fork 0
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
React Integration in Drupal Page #11
Comments
Integrate a react-app Example to add a library to the bartik theme
This library can be referenced by the react-mount module. The react objects can be bound to the window variable and easily invoked from the docker page. Example: <script type="text/javascript">
function go(la, ln) {
//mapComp is the react object
window.mapComp.setView(la, ln, 8);
}
</script>
<input onclick="go(48.858093, 2.294694)" style="margin-right: 20px;" type="button" value="Paris" />
<input onclick="go(51.509865, -0.118092)" type="button" value="London" /> |
If the react apps need to reside in a subfolder of the csis-theme, then we might run in to problems if we want to use dedicated git repositories for our react apps. See also #25 |
@therter According to the React Mount Node documentation, you can place the react app in the libraries folder of the theme or in the general /libraries folder. Please check also the Best practices for handling external libraries in Drupal 8. |
done |
@fgeyer16 idea to be defined "create react field of group entity" = entry point for react applications
The text was updated successfully, but these errors were encountered: