So I wrote ReactJS, CSS and HTML code of a calendar, separately from WordPress development, and want to add this calendar to a specific page on my website.
So far I have this code:
function my_custom_scripts() {
wp_enqueue_script( 'calendar', get_stylesheet_directory_uri() . '/js/calendar.js', array(),null,true );
}
add_action( 'wp_enqueue_scripts', 'my_custom_scripts' );
To enqueue the script.
Then I can create a template for the specific page in the child theme, but where do I go from here?
I have other content on that page and would just like the add the calendar to the page.
Thank you!