<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>js on Jaaved Ali Khan</title><link>https://jaaved.netlify.app/tags/js/</link><description>Recent content in js on Jaaved Ali Khan</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Tue, 07 May 2024 23:26:42 +0300</lastBuildDate><atom:link href="https://jaaved.netlify.app/tags/js/index.xml" rel="self" type="application/rss+xml"/><item><title>React</title><link>https://jaaved.netlify.app/notes/react--20210912-101143/</link><pubDate>Tue, 07 May 2024 23:26:42 +0300</pubDate><guid>https://jaaved.netlify.app/notes/react--20210912-101143/</guid><description>j+LAST_MODIFIED: [2022-11-14 Mon 19:18]
Summary # UI reacts to changes in the state. Very popular JavaScript frontend library(not framework because batteries are not included).
Context API # ref github tutorial example
How the context API Works # Context API allows data to be passed through a component tree without having to pass props manually at every level. This makes it easier to share data between components.
Procedure to create the context API # 1.</description></item><item><title>Date Conversion from Django Template to JavaScript</title><link>https://jaaved.netlify.app/notes/date_conversion_from_django_template_to_javascript--20211222-140535/</link><pubDate>Sat, 14 Jan 2023 20:15:05 +0400</pubDate><guid>https://jaaved.netlify.app/notes/date_conversion_from_django_template_to_javascript--20211222-140535/</guid><description>In project there was a requirement to use
&amp;lt;td&amp;gt; object.time_stamp.isoformat &amp;lt;/td&amp;gt; $.fn.dataTable.ext.search.push( function(settings, data, dataIndex) var min = minDate.val(); var max = maxDate.val(); let dateTime = data[1]; // here !!!!!!!!!!!!! var date = new Date(dateTime); if ( (min === null &amp;amp;&amp;amp; max === null) || (min === null &amp;amp;&amp;amp; date &amp;lt;= max) || (min &amp;lt;= date &amp;amp;&amp;amp; max === null) || (min &amp;lt;= date &amp;amp;&amp;amp; date &amp;lt;= max) ) return true; return false; ); From here: https://stackoverflow.</description></item></channel></rss>