JSFiddle - React, Tailwind, and code Playground
JavaScript
//How can I use the rss feed from theweathernetwork instead?
//rss.theweathernetwork.com/weather/caon0289 -doesn't work
//weather.gc.ca/rss/city/on-77_e.xml -works
$.get('http://www.corsproxy.com/rss.theweathernetwork.com/weather/caon0289', {
}, null, 'xml').done(function(response) {
var entries = $('entry title', response);
var body = $('body');
entries.each(function(k,v) {
body.append($('<p/>').text($(v).text()));
});
}).fail(function(xhr,status,thrown) {
debugger;
});