You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
React application's loaded into WordPress with this loader should be able to define their own script/style dependencies.
Examples
React app X might require jquery (I know this is a poor example). Rather than importing it's own copy of jquery, it has the ability to use WordPress core's jquery script.
React app X might require that the WordPress theme's base styles should be loaded before its own styles.
The text was updated successfully, but these errors were encountered:
Awesome. I think I did some research too on the solution for the second one: stylesheet enqueue order priority. If I recall, react-app-loader adds the stylesheets calling wp_enqueue_style directly, but if you add it as an action, the priority can be set, so maybe that could be an argument for the setup function. I wonder if the default should be to set high by default?
React application's loaded into WordPress with this loader should be able to define their own script/style dependencies.
Examples
The text was updated successfully, but these errors were encountered: