<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Frontend Archives - Software Evolutivo</title>
	<atom:link href="https://softwareevolutivo.com.ec/category/desarrollo-de-software/fontend-es/feed/" rel="self" type="application/rss+xml" />
	<link>https://softwareevolutivo.com.ec/category/desarrollo-de-software/fontend-es/</link>
	<description>Consultora de Software Empresarial</description>
	<lastBuildDate>Fri, 16 Dec 2022 14:50:58 +0000</lastBuildDate>
	<language>es</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://softwareevolutivo.com.ec/wp-content/uploads/2024/03/cropped-Perfil-Redes-Iso-32x32.png</url>
	<title>Frontend Archives - Software Evolutivo</title>
	<link>https://softwareevolutivo.com.ec/category/desarrollo-de-software/fontend-es/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>UX: Experiencia de Usuario una Prioridad en el Desarrollo de Sistemas Organizacionales</title>
		<link>https://softwareevolutivo.com.ec/ux-experiencia-de-usuario-una-prioridad-en-el-desarrollo-de-sistemas-organizacionales/</link>
					<comments>https://softwareevolutivo.com.ec/ux-experiencia-de-usuario-una-prioridad-en-el-desarrollo-de-sistemas-organizacionales/#comments</comments>
		
		<dc:creator><![CDATA[Bryan Diaz]]></dc:creator>
		<pubDate>Thu, 27 Oct 2022 21:07:21 +0000</pubDate>
				<category><![CDATA[Aplicaciones Web]]></category>
		<category><![CDATA[Desarrollo de Software]]></category>
		<category><![CDATA[Frontend]]></category>
		<category><![CDATA[Tecnología]]></category>
		<category><![CDATA[Experiencia de Usuario]]></category>
		<category><![CDATA[UX]]></category>
		<guid isPermaLink="false">https://softwareevolutivo.com.ec/?p=6552</guid>

					<description><![CDATA[<p>Actualmente, la compra o alquiler de sistemas dentro de las organizaciones a través de plataformas virtuales presenta un mayor índice de demanda, de modo que, gracias a la pandemia del COVID-19, los usuarios son más flexibles en sus acciones o tareas a la hora de buscar productos o servicios que deseen adquirir. </p>
<p>The post <a href="https://softwareevolutivo.com.ec/ux-experiencia-de-usuario-una-prioridad-en-el-desarrollo-de-sistemas-organizacionales/">UX: Experiencia de Usuario una Prioridad en el Desarrollo de Sistemas Organizacionales</a> appeared first on <a href="https://softwareevolutivo.com.ec">Software Evolutivo</a>.</p>
]]></description>
										<content:encoded><![CDATA[		<div data-elementor-type="wp-post" data-elementor-id="6552" class="elementor elementor-6552">
						<section class="elementor-section elementor-top-section elementor-element elementor-element-058640b elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="058640b" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-18f6954" data-id="18f6954" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-50bead3 elementor-widget elementor-widget-text-editor" data-id="50bead3" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p dir="ltr" style="line-height: 1.38;text-align: justify;margin-top: 12pt;margin-bottom: 12pt"><span style="font-size: 11pt;font-family: 'Times New Roman';color: #000000;background-color: transparent;font-weight: 400;font-style: normal;font-variant: normal;text-decoration: none;vertical-align: baseline">Actualmente, la compra o alquiler de sistemas dentro de las organizaciones a través de plataformas virtuales presenta un mayor índice de demanda, de modo que, gracias a la pandemia del COVID-19, los usuarios son más flexibles en sus acciones o tareas a la hora de buscar productos o servicios que deseen adquirir. Razón por la cual, para efectuar una buena negociación y una venta exitosa, se necesita brindarle a sus compradores una herramienta innovadora y una experiencia de usuario rápida, instantánea, y simple para cualquier tipo de dispositivo. </span></p><p dir="ltr" style="line-height: 1.38;text-align: justify;margin-top: 12pt;margin-bottom: 12pt"><span style="font-size: 11pt;font-family: 'Times New Roman';color: #000000;background-color: transparent;font-weight: 400;font-style: normal;font-variant: normal;text-decoration: none;vertical-align: baseline">Si bien es cierto, al momento de desarrollar un sistema, tenemos en cuenta todos los lineamientos necesarios para que éste cumpla con los requerimientos del cliente; no obstante, nos hacemos preguntas como: ¿Qué tan difícil será su manejo?, ¿Será agradable para los usuarios? o ¿Estará clara la información plasmada o presentada?, en fin… un sinnúmero de preguntas que en la mayoría de los casos  no consideramos de gran importancia al momento de desarrollar nuestro producto. </span></p><p dir="ltr" style="line-height: 1.38;text-align: justify;margin-top: 12pt;margin-bottom: 12pt"><span style="font-size: 11pt;font-family: 'Times New Roman';color: #000000;background-color: transparent;font-weight: 400;font-style: normal;font-variant: normal;text-decoration: none;vertical-align: baseline">Es por ello que, a partir de esta iniciativa resulta de vital importancia considerar al UX como punto de partida indispensable en el desarrollo de un producto, de manera que, dicho término aparte de que se usa muy a menudo en el mundo tecnológico; es una prioridad en el desarrollo de sistemas, ya que gracias a ello los diseñadores ahora son más consciente de cómo su trabajo impacta al usuario y cuales son sus necesidades.Hay que destacar que, el trabajo del diseño de UX se centra en encontrar un equilibrio entre las necesidades del usuario, las necesidades comerciales y las capacidades técnicas, de manera que hallar el balance perfecto crea una experiencia de usuario beneficiosa y le permite al negocio alcanzar sus objetivos.</span></p><p><b style="font-weight: normal"> </b></p><p dir="ltr" style="line-height: 1.38;text-align: justify;margin-top: 12pt;margin-bottom: 12pt"><span style="font-size: 11pt;font-family: 'Times New Roman';color: #000000;background-color: transparent;font-weight: bold;font-style: normal;font-variant: normal;text-decoration: none;vertical-align: baseline">¿Qué es UX o Experiencia de Usuario? </span></p><p dir="ltr" style="line-height: 1.38;text-align: justify;margin-top: 12pt;margin-bottom: 12pt"><span style="font-size: 11pt;font-family: 'Times New Roman';color: #000000;background-color: transparent;font-weight: 400;font-style: normal;font-variant: normal;text-decoration: none;vertical-align: baseline">Nielsen Norman Group, empresa estadounidense de consultoría en interfaz de usuario (UI) y experiencia de usuario define a UX como una de las experiencias de usuario más completas que coexisten a nivel global, puesto que que incluye todos los aspectos de la interacción del usuario final con la empresa, con sus servicios y con sus productos. Por ello, su término se menciona con mayor frecuencia en áreas relacionadas con tecnología, tales como teléfonos inteligentes, computadoras, software o sitios web. Se debe tener presente que, la experiencia del usuario no es solo un campo bastante nuevo, sino también un área volátil, ya que, cambia rápidamente debido a los avances tecnológicos, los nuevos tipos de interacción y las preferencias del usuario.</span></p><p> </p><p dir="ltr" style="line-height: 1.38;text-align: justify;margin-top: 12pt;margin-bottom: 12pt"><span style="font-size: 11pt;font-family: 'Times New Roman';color: #000000;background-color: transparent;font-weight: 400;font-style: normal;font-variant: normal;text-decoration: none;vertical-align: baseline">Dicho de otra manera, el UX no es nada más que la experiencia innovadora que obtiene un usuario en los distintos escenarios al momento de utilizar un producto, de manera que, dicha acción les brinda una respuesta/solución a sus preguntas o problemas. Según Yudica (2016), esto suscita porque los diseñadores se encargan de proporcionarle al internauta una variabilidad de soluciones frente a los diversos aspectos comunicativos que puede presentar el mismo con un determinado producto o servicio (incluida la usabilidad, accesibilidad, y capacidad de encontrar/aprender/recordar); por ende, su principal función no es otra cosa que hacer que el producto sea amigable, satisfactorio, accesible y útil para el usuario.</span></p><p dir="ltr" style="line-height: 1.38;text-align: justify;margin-top: 12pt;margin-bottom: 12pt"><span style="font-size: 11pt;font-family: 'Times New Roman';color: #000000;background-color: transparent;font-weight: 400;font-style: normal;font-variant: normal;text-decoration: none;vertical-align: baseline"><span style="font-size: 11pt;background-color: transparent;vertical-align: baseline"><span style="border: none;overflow: hidden;width: 539px;height: 404px"><img fetchpriority="high" decoding="async" style="margin-left: 0px;margin-top: 0px" src="https://lh3.googleusercontent.com/IvP07lxJ9wjM2C4QUBFExheWhu6kdK9P0kap5kYywRsFb_IT09EPWLDd_yuxzTz4sOz92RAgeHmxv5QwXEsyvW0RdyLCX6mA1EHbciPFwZjBNH-XCByXjybxD9LlU1fM0IfZZN7dB4sEWzz2htltFjwbsIm_5N3y4Cc7kBC8XZ8zYZZj3Me04oiHjQ" width="539" height="404" /></span></span><br /></span></p><p dir="ltr" style="line-height: 1.38;text-align: justify;margin-top: 12pt;margin-bottom: 12pt"><span style="font-size: 11pt;font-family: 'Times New Roman';color: #000000;background-color: transparent;font-weight: bold;font-style: normal;font-variant: normal;text-decoration: none;vertical-align: baseline">Prototipos UX </span></p><p dir="ltr" style="line-height: 1.38;text-align: justify;margin-top: 12pt;margin-bottom: 12pt"><span style="font-size: 11pt;font-family: 'Times New Roman';color: #000000;background-color: transparent;font-weight: 400;font-style: normal;font-variant: normal;text-decoration: none;vertical-align: baseline">Ayudan a capturar visualmente los objetivos comerciales y alinearlos con las expectativas o necesidades de los usuarios, para así,  tener conocimiento del grado de satisfacción que exhiben los mismo con el producto creado. Hay que tener en cuenta que el coste de modificar un prototipo es inferior al coste de cambiar un producto digital subido a producción, por lo que supone una ventaja de ahorro de costes durante el desarrollo.</span></p><p dir="ltr" style="line-height: 1.38;text-align: justify;margin-top: 12pt;margin-bottom: 12pt"><span style="border: none;overflow: hidden;width: 186px;height: 459px"> <img decoding="async" style="margin-left: 0px;margin-top: 0px" src="https://lh4.googleusercontent.com/4pkFGn1HGFcv7nVe-F4BnbpZvyb9BTQGd5UMpGZlZAQJ98Vv9pR3yLZSwLudG7gnXwdx07P8a6nDqGBlTEH3WiH-fCB172nMUISNfDPYdLClin3oizy9M7_RVEer2UOMWi3FdHMN1qAuaaaoNq0KkmV-B168uVRTIApN4nrpUAzy8gVNIQDigDjo-g" width="186" height="459" /></span></p><p dir="ltr" style="line-height: 1.38;text-align: justify;margin-top: 12pt;margin-bottom: 12pt"><span style="font-size: 11pt;font-family: 'Times New Roman';color: #000000;background-color: transparent;font-weight: 400;font-style: normal;font-variant: normal;text-decoration: none;vertical-align: baseline">El diseño de UX no solo prioriza las necesidades del usuario, sino también las capacidades metodológicas y ausencias de un negocio, ya que no todos los individuos poseen las mismas competencias técnicas para brindar una solución ideal a cada problemática; ni todas las empresas poseen el suficiente recurso monetario para invertir constantemente en los formación técnica/profesional de todos sus colaboradores. </span></p><p dir="ltr" style="line-height: 1.38;text-align: justify;margin-top: 12pt;margin-bottom: 12pt"><span style="font-size: 11pt;font-family: 'Times New Roman';color: #000000;background-color: transparent;font-weight: 400;font-style: normal;font-variant: normal;text-decoration: none;vertical-align: baseline"> Por este motivo, el trabajo del diseño de UX se centra en encontrar un equilibrio entre las necesidades del usuario, las necesidades comerciales y las capacidades técnicas, de manera que hallar el balance perfecto crea una experiencia de usuario beneficiosa (satisface sus necesidades) y le permite al negocio alcanzar sus objetivos, siempre y cuando esta se encuentre dentro de las capacidades técnicas de la empresa. </span></p><p dir="ltr" style="line-height: 1.38;text-align: justify;margin-top: 12pt;margin-bottom: 12pt"><span style="font-size: 11pt;font-family: 'Times New Roman';color: #000000;background-color: transparent;font-weight: 400;font-style: normal;font-variant: normal;text-decoration: none;vertical-align: baseline">Se debe tener en cuenta que el diseño UX, es un proceso que inicia con la comprensión de los usuarios, luego con el diseño de interfaces, y, finalmente con la prueba para ver si el mismo logra satisfacer las necesidades de los usuarios; de modo que aquello representa una parte integral del proceso de desarrollo del producto. </span></p><p dir="ltr" style="line-height: 1.38;text-align: justify;margin-top: 12pt;margin-bottom: 12pt"> </p><p dir="ltr" style="line-height: 1.38;text-align: justify;margin-top: 12pt;margin-bottom: 12pt"><span style="font-size: 11pt;font-family: 'Times New Roman';color: #000000;background-color: transparent;font-weight: 400;font-style: normal;font-variant: normal;text-decoration: none;vertical-align: baseline">A su vez, para crear un diseño fácil de usar, los diseñadores de UX deben participar en el proceso de principio a fin. Por ende, es conveniente realizar investigaciones sobre cómo los usuarios buscan un producto, navegan por las páginas, buscan detalle de los productos, e interactúan con el sistema; ya que tras la investigación y el análisis exhaustivo de los datos y registros obtenidos, deberemos de ser capaces de generar diseños y experiencias que satisfagan las necesidades de los usuarios. </span></p><p dir="ltr" style="line-height: 1.38;text-align: justify;margin-top: 12pt;margin-bottom: 12pt"><span style="font-size: 11pt;font-family: 'Times New Roman';color: #000000;background-color: transparent;font-weight: 400;font-style: normal;font-variant: normal;text-decoration: none;vertical-align: baseline">Para ofrecer buenos resultados en el proceso de desarrollo de un producto se debe considerar lo siguiente: </span></p><p dir="ltr" style="line-height: 1.38;text-align: justify;margin-top: 12pt;margin-bottom: 12pt"><span style="font-size: 11pt;font-family: 'Times New Roman';color: #000000;background-color: transparent;font-weight: 400;font-style: normal;font-variant: normal;text-decoration: none;vertical-align: baseline"><span style="border: none;overflow: hidden;width: 433px;height: 323px"><img decoding="async" style="margin-left: 0px;margin-top: 0px" src="https://lh6.googleusercontent.com/Rsk1lZhBnpl8_Hnh6ZPoXb9lSCjclCDs_ORhTWU2Nx-oFlwjWc2A_8uGXdfwwU3h4SP7VzytoAZP1VAUR-pP1P-eno8N7vl-_YCw4-00nfsnxrKRen890lal--uvgUf38r9_jOZYvztYOqh3e7j1eXWeMqNjhANRveKJer1wIhhs21qttYJRdLrj3A" width="433" height="323" /></span></span></p><p dir="ltr" style="line-height: 1.38;text-align: justify;margin-top: 12pt;margin-bottom: 12pt"><span style="font-size: 11pt;font-family: 'Times New Roman';color: #000000;background-color: transparent;font-weight: bold;font-style: normal;font-variant: normal;text-decoration: none;vertical-align: baseline">Relación Esfuerzo – Beneficio en UX</span></p><p dir="ltr" style="line-height: 1.38;text-align: justify;margin-top: 12pt;margin-bottom: 12pt"><span style="font-size: 11pt;font-family: 'Times New Roman';color: #000000;background-color: transparent;font-weight: 400;font-style: normal;font-variant: normal;text-decoration: none;vertical-align: baseline">Cuando diseñamos tomando en consideración los principios de usabilidad, lo que buscamos es reducir al mínimo las barreras de interacción, y por lo tanto el esfuerzo del usuario para completar tareas interactivas, ya que, el principal objetivo es evitar la frustración del usuario. En la mayoría de los casos el producto ideal es el que se adapta al usuario; no obstante, en ocasiones es imprescindible que sea el usuario quien se adapte al producto, de manera que se pretende reducir el tiempo de dedicación y esfuerzo para aprender cómo usarlo. Debido a aquello,  es posible analizar la experiencia de usuario únicamente en términos de facilidad de uso sin tener en consideración cuál es el beneficio o valor de uso, puesto que, la calidad e idoneidad de un diseño viene determinada por la relación esfuerzo-beneficio y es sólo cuando el beneficio o valor percibido supere el esfuerzo requerido, podremos hablar de experiencias de usuario satisfactorias.</span></p><p dir="ltr" style="line-height: 1.38;text-align: justify;margin-top: 12pt;margin-bottom: 12pt"><span style="font-size: 11pt;font-family: 'Times New Roman';color: #000000;background-color: transparent;font-weight: bold;font-style: normal;font-variant: normal;text-decoration: none;vertical-align: baseline">UX es igual a resolver problemas </span></p><p dir="ltr" style="line-height: 1.38;text-align: justify;margin-top: 12pt;margin-bottom: 12pt"><span style="font-size: 11pt;font-family: 'Times New Roman';color: #000000;background-color: transparent;font-weight: 400;font-style: normal;font-variant: normal;text-decoration: none;vertical-align: baseline">Es importante pensar en el usuario en cada parte del proceso de realización de un producto, ya que, ponernos en el lugar del usuario al momento de utilizar dicho producto para conocer la forma en la que va a interactuar con el mismo,  mejora de una manera temprana los posibles problemas que se puedan generar en el  usuario con el producto terminado.Y es ahí, donde parte la importancia para UX, de llevar un proceso e involucrar al usuario en cada etapa del procedimiento, y no simplemente tener la idea de pensar en el usuario. </span></p><p dir="ltr" style="line-height: 1.38;text-align: justify;margin-top: 12pt;margin-bottom: 12pt"><span style="font-size: 11pt;font-family: 'Times New Roman';color: #000000;background-color: transparent;font-weight: 400;font-style: normal;font-variant: normal;text-decoration: none;vertical-align: baseline">Diseño de experiencia no solamente se basa en satisfacer al usuario sino también a cumplir con los objetivos del negocio, el diseñador de experiencia hace de puente entre el usuario y el cliente que nos contrata.</span></p><p dir="ltr" style="line-height: 1.38;text-align: justify;margin-top: 12pt;margin-bottom: 12pt"><span style="font-size: 11pt;font-family: 'Times New Roman';color: #000000;background-color: transparent;font-weight: bold;font-style: normal;font-variant: normal;text-decoration: none;vertical-align: baseline">Conclusión</span></p><p dir="ltr" style="line-height: 1.38;text-align: justify;margin-top: 12pt;margin-bottom: 12pt"><span style="font-size: 11pt;font-family: 'Times New Roman';color: #000000;background-color: transparent;font-weight: 400;font-style: normal;font-variant: normal;text-decoration: none;vertical-align: baseline">UX resulta ser de gran prioridad para las organizaciones, ya que se obtiene sistemas amigables-fáciles de usar, garantiza la fluidez-eficiencia en el diseño, y exhibe una gran demanda dentro del mercado laboral, ya que actualmente los clientes buscan constantemente satisfacer sus necesidades y solucionar sus problemas de forma breve y simple. Por ello, se caracteriza por ser una experiencia innovadora que obtiene un  usuario en los distintos escenarios al momento de utilizar un sistema, de manera que, dicha acción les brinda una respuesta/solución a sus preguntas o problemas. Cabe recalcar que, aquello suscita porque los diseñadores se encargan de proporcionarle al internauta una variabilidad de soluciones frente a los diversos aspectos comunicativos que puede presentar el mismo con un determinado producto o servicio (incluida la usabilidad, accesibilidad, y capacidad de encontrar/aprender/recordar); por ende, su principal función no es otra cosa que hacer que el producto sea amigable, satisfactorio, accesible y útil para el usuario</span></p><p dir="ltr" style="line-height: 1.38;text-align: justify;margin-top: 12pt;margin-bottom: 12pt"><span style="font-size: 11pt;font-family: 'Times New Roman';color: #000000;background-color: transparent;font-weight: 400;font-style: normal;font-variant: normal;text-decoration: none;vertical-align: baseline">Por su parte, la implementación del UX se enfoca en las acciones que realiza el usuario delante de la pantalla, de manera que al tener en cuenta su uso, nivel de afectación y grado de  aceptación; no solo genera beneficios para los usuarios, sino que también  para las empresas u organizaciones, puesto que, el examinar los diferentes escenarios a los que puede estar expuesto el usuario y el brindar solución cada uno de ellos, les genera buena reputación en el mercado laboral. Teniendo presente que el diseño de experiencia no solamente se basa en satisfacer al usuario sino también a cumplir con los objetivos del negocio.</span></p><p dir="ltr" style="line-height: 1.38;text-align: justify;margin-top: 12pt;margin-bottom: 12pt"><span style="font-size: 11pt;font-family: 'Times New Roman';color: #000000;background-color: transparent;font-weight: 400;font-style: normal;font-variant: normal;text-decoration: none;vertical-align: baseline"><b style="font-weight: normal"> </b></span></p><p dir="ltr" style="line-height: 1.38;margin-top: 12pt;margin-bottom: 12pt"><span style="font-size: 11pt;font-family: 'Times New Roman';color: #000000;background-color: transparent;font-weight: bold;font-style: normal;font-variant: normal;text-decoration: none;vertical-align: baseline">Referencia </span></p><p dir="ltr" style="line-height: 1.38;margin-top: 12pt;margin-bottom: 12pt"> </p><ul style="margin-top: 0;margin-bottom: 0"><li dir="ltr" style="list-style-type: disc;font-size: 12pt;font-family: 'Times New Roman';color: #0000ff;background-color: transparent;font-weight: 400;font-style: normal;font-variant: normal;text-decoration: none;vertical-align: baseline"><p dir="ltr" style="line-height: 1.38;margin-top: 0pt;margin-bottom: 0pt" role="presentation"><a style="text-decoration: none" href="https://yusef.es/Experiencia_de_Usuario.pdf"><span style="font-size: 12pt;font-family: 'Times New Roman';color: #0000ff;background-color: transparent;font-weight: 400;font-style: normal;font-variant: normal;text-decoration: underline;vertical-align: baseline">https://yusef.es/Experiencia_de_Usuario.pdf</span></a></p></li><li dir="ltr" style="list-style-type: disc;font-size: 12pt;font-family: 'Times New Roman';color: #0000ff;background-color: transparent;font-weight: 400;font-style: normal;font-variant: normal;text-decoration: none;vertical-align: baseline"><p dir="ltr" style="line-height: 1.38;margin-top: 0pt;margin-bottom: 0pt" role="presentation"><a style="text-decoration: none" href="http://webs.ucm.es/BUCM/revcul/e-learning-innova/224/art3403.pdf"><span style="font-size: 12pt;font-family: 'Times New Roman';color: #0000ff;background-color: transparent;font-weight: 400;font-style: normal;font-variant: normal;text-decoration: underline;vertical-align: baseline">http://webs.ucm.es/BUCM/revcul//e-learning-innova/224/art3403.pdf</span></a></p></li><li dir="ltr" style="list-style-type: disc;font-size: 12pt;font-family: 'Times New Roman';color: #0000ff;background-color: transparent;font-weight: 400;font-style: normal;font-variant: normal;text-decoration: none;vertical-align: baseline"><p dir="ltr" style="line-height: 1.38;margin-top: 0pt;margin-bottom: 0pt" role="presentation"><a style="text-decoration: none" href="https://blog.hubspot.es/marketing/experiencia-de-usuario-ux"><span style="font-size: 12pt;font-family: 'Times New Roman';color: #0000ff;background-color: transparent;font-weight: 400;font-style: normal;font-variant: normal;text-decoration: underline;vertical-align: baseline">https://blog.hubspot.es/marketing/experiencia-de-usuario-ux</span></a></p></li><li dir="ltr" style="list-style-type: disc;font-size: 12pt;font-family: 'Times New Roman';color: #0000ff;background-color: transparent;font-weight: 400;font-style: normal;font-variant: normal;text-decoration: none;vertical-align: baseline"><p dir="ltr" style="line-height: 1.38;margin-top: 0pt;margin-bottom: 0pt" role="presentation"><a style="text-decoration: none" href="https://www.scielo.sa.cr/pdf/tem/v30s1/0379-3982-tem-30-s1-49.pdf"><span style="font-size: 12pt;font-family: 'Times New Roman';color: #0000ff;background-color: transparent;font-weight: 400;font-style: normal;font-variant: normal;text-decoration: underline;vertical-align: baseline">https://www.scielo.sa.cr/pdf/tem/v30s1/0379-3982-tem-30-s1-49.pdf</span></a></p></li><li dir="ltr" style="list-style-type: disc;font-size: 12pt;font-family: 'Times New Roman';color: #0000ff;background-color: transparent;font-weight: 400;font-style: normal;font-variant: normal;text-decoration: none;vertical-align: baseline"><p dir="ltr" style="line-height: 1.38;margin-top: 0pt;margin-bottom: 0pt" role="presentation"><a style="text-decoration: none" href="https://amgerpro.com/el-53-de-nosotros-abandonara-una-web-si-tarda-mas-de-3-segundos-en-cargar/"><span style="font-size: 12pt;font-family: 'Times New Roman';color: #0000ff;background-color: transparent;font-weight: 400;font-style: normal;font-variant: normal;text-decoration: underline;vertical-align: baseline">https://amgerpro.com/el-53-de-nosotros-abandonara-una-web-si-tarda-mas-de-3-segundos-en-cargar/</span></a></p></li><li dir="ltr" style="list-style-type: disc;font-size: 12pt;font-family: 'Times New Roman';color: #0000ff;background-color: transparent;font-weight: 400;font-style: normal;font-variant: normal;text-decoration: none;vertical-align: baseline"><p dir="ltr" style="line-height: 1.38;margin-top: 0pt;margin-bottom: 0pt" role="presentation"><a style="text-decoration: none" href="https://www.scielo.sa.cr/pdf/tem/v30s1/0379-3982-tem-30-s1-49.pdf"><span style="font-size: 12pt;font-family: 'Times New Roman';color: #0000ff;background-color: transparent;font-weight: 400;font-style: normal;font-variant: normal;text-decoration: underline;vertical-align: baseline">https://www.scielo.sa.cr/pdf/tem/v30s1/0379-3982-tem-30-s1-49.pdf</span></a></p></li><li dir="ltr" style="list-style-type: disc;font-size: 12pt;font-family: 'Times New Roman';color: #0000ff;background-color: transparent;font-weight: 400;font-style: normal;font-variant: normal;text-decoration: none;vertical-align: baseline"><p dir="ltr" style="line-height: 1.38;margin-top: 0pt;margin-bottom: 0pt" role="presentation"><a style="text-decoration: none" href="https://freed.tools/blogs/ux-cx/rediseno-sistema-colaborativo"><span style="font-size: 12pt;font-family: 'Times New Roman';color: #0000ff;background-color: transparent;font-weight: 400;font-style: normal;font-variant: normal;text-decoration: underline;vertical-align: baseline">https://freed.tools/blogs/ux-cx/rediseno-sistema-colaborativ</span></a>o</p></li></ul>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				</div>
		<p>The post <a href="https://softwareevolutivo.com.ec/ux-experiencia-de-usuario-una-prioridad-en-el-desarrollo-de-sistemas-organizacionales/">UX: Experiencia de Usuario una Prioridad en el Desarrollo de Sistemas Organizacionales</a> appeared first on <a href="https://softwareevolutivo.com.ec">Software Evolutivo</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://softwareevolutivo.com.ec/ux-experiencia-de-usuario-una-prioridad-en-el-desarrollo-de-sistemas-organizacionales/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>Enganchémonos con REACT HOOKS!</title>
		<link>https://softwareevolutivo.com.ec/react-hooks/</link>
					<comments>https://softwareevolutivo.com.ec/react-hooks/#respond</comments>
		
		<dc:creator><![CDATA[Ariel Altamirano]]></dc:creator>
		<pubDate>Tue, 05 Apr 2022 15:15:43 +0000</pubDate>
				<category><![CDATA[Aplicaciones Web]]></category>
		<category><![CDATA[Desarrollo de Software]]></category>
		<category><![CDATA[Frontend]]></category>
		<category><![CDATA[React]]></category>
		<category><![CDATA[React Hooks]]></category>
		<guid isPermaLink="false">https://softwareevolutivo.com.ec/?p=1366</guid>

					<description><![CDATA[<p>Un Hook es una función especial que permite conectarnos a características de React, para trabajar con métodos especiales, los cuales nos permitirán manejar el estado de mejor forma sin depender de clases.<br />
Los react hooks vienen a resolver problemas de complejidad en el manejo de la lógica de estados entre componentes y también trabajan mediante funciones y ya no mediante clases </p>
<p>The post <a href="https://softwareevolutivo.com.ec/react-hooks/">Enganchémonos con REACT HOOKS!</a> appeared first on <a href="https://softwareevolutivo.com.ec">Software Evolutivo</a>.</p>
]]></description>
										<content:encoded><![CDATA[		<div data-elementor-type="wp-post" data-elementor-id="1366" class="elementor elementor-1366">
						<section class="elementor-section elementor-top-section elementor-element elementor-element-fc27f0e elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="fc27f0e" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-6628b80" data-id="6628b80" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
							</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-34b9246 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="34b9246" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-01f8668" data-id="01f8668" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-bfbec25 elementor-widget elementor-widget-text-editor" data-id="bfbec25" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<h1 dir="ltr" style="line-height: 1.2; margin-top: 20pt; margin-bottom: 6pt;"><span style="font-size: 13.999999999999998pt; font-family: Times,serif; color: #000000; background-color: transparent; font-weight: bold; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">¿Qué es un Hook?</span></h1>
<p><b id="docs-internal-guid-0b602657-7fff-08cc-61d6-9fef608951e1" style="font-weight: normal;">&nbsp;</b></p>
<p dir="ltr" style="line-height: 1.2; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 12pt; font-family: Times,serif; color: #000000; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Un Hook es una función especial que permite conectarnos a características de React, para trabajar con métodos especiales, los cuales nos permitirán manejar el estado de mejor forma sin depender de clases. (Medina, 2021)&nbsp;</span></p>
<p dir="ltr" style="line-height: 1.2; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 12pt; font-family: Times,serif; color: #000000; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Más adelante veremos estos principales métodos especiales.</span></p>
<h1 dir="ltr" style="line-height: 1.2; margin-top: 20pt; margin-bottom: 6pt;"><span style="font-size: 13.999999999999998pt; font-family: Times,serif; color: #000000; background-color: transparent; font-weight: bold; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">¿Qué son los React Hooks?</span></h1>
<p><b style="font-weight: normal;">&nbsp;</b></p>
<p dir="ltr" style="line-height: 1.2; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 12pt; font-family: Times,serif; color: #000000; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Son una característica opcional que salió en la versión 16.8 en febrero de 2019, sin embargo, son compatibles con versiones anteriores. (Capparelli, 2020)</span></p>
<p dir="ltr" style="line-height: 1.2; margin-top: 0pt; margin-bottom: 0pt;"><span id="docs-internal-guid-c7a99b2d-7fff-f14c-84c7-c8d4bb268a89"><span style="font-size: 12pt; font-family: Times, serif; color: rgb(0, 0, 0); background-color: transparent; font-variant-numeric: normal; font-variant-east-asian: normal; vertical-align: baseline; white-space: pre-wrap;">Los react hooks vienen a resolver problemas de complejidad en el manejo de la lógica de estados entre componentes y también trabajan mediante funciones (Figura 1) y ya no mediante clases (Figura 2).</span></span><br></p>
<p><b style="font-weight: normal;">&nbsp;</b></p>
<p dir="ltr" style="line-height: 1.2; text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 12pt; font-family: Times,serif; color: #000000; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span style="border: none; display: inline-block; overflow: hidden; width: 272px; height: 195px;"><img loading="lazy" decoding="async" style="margin-left: 0px; margin-top: 0px;" title="Figura 2" src="https://lh3.googleusercontent.com/7tnjCvbeoskRXP1kuubZCEaVaKVlAQyxy6D0nvXFkw8saNEWLY9J7GHTtk3xLZdE9Y88yPJQSlPYdw2CddVO6Fo2qHWeYbMYQxrt9JcflW-vSdlcfdDYiCFSZ2QyDYIXu9SqeoRbx5eH8tTLJA" alt="Funciones en React Hooks" width="272" height="195"></span></span></p>
<p dir="ltr" style="line-height: 1.2; text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 12pt; font-family: Times,serif; color: #000000; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Figura 1. Funciones en React Hooks</span></p>
<p dir="ltr" style="line-height: 1.2; text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 12pt; font-family: Times,serif; color: #000000; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span style="border: none; display: inline-block; overflow: hidden; width: 268px; height: 272px;"><img loading="lazy" decoding="async" style="margin-left: 0px; margin-top: 0px;" title="Figura 1" src="https://lh6.googleusercontent.com/zovjf5SvieEzSjzWQcsy9LE_MUUI8nFiiiYBp0uCgG4Gu-VbHXoiksgFtP0HN8-vBfoKKdCMq40P_iArd0SZZkuGs7eohxfqT2BVRsRMXByER_qbISlo1RzlFcxU-nSs_uJY_F83N17eelEOPA" alt="Clases en React" width="268" height="272"></span></span></p>
<p dir="ltr" style="line-height: 1.2; text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 12pt; font-family: Times,serif; color: #000000; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Figura 2. Clases en React</span></p>
<p><b style="font-weight: normal;">&nbsp;</b></p>
<p dir="ltr" style="line-height: 1.2; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 13.999999999999998pt; font-family: Times,serif; color: #000000; background-color: transparent; font-weight: bold; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Métodos principales</span></p>
<p><b style="font-weight: normal;">&nbsp;</b></p>
<p dir="ltr" style="line-height: 1.2; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 12pt; font-family: Times,serif; color: #000000; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Como ya hemos visto anteriormente, los hooks son funciones especiales que permiten acceder a las funcionalidades de React. En esta sección del blog veremos los hooks más importantes con una pequeña descripción de lo que hacen y un ejemplo de cada uno.</span></p>
<p><b style="font-weight: normal;">&nbsp;</b></p>
<p dir="ltr" style="line-height: 1.2; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 12pt; font-family: Times,serif; color: #000000; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Nota: Cada hook tiene que ser importado desde la librería React (Figura 3) y cada hook es creado en un nuevo archivo, el cual tiene que ser llamado desde App.js (Figura 4)</span></p>
<p dir="ltr" style="line-height: 1.2; text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 12pt; font-family: Times,serif; color: #000000; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span style="border: none; display: inline-block; overflow: hidden; width: 342px; height: 19px;"><img loading="lazy" decoding="async" style="margin-left: 0px; margin-top: 0px;" src="https://lh6.googleusercontent.com/tUakm1BYwMgtXXTnR_ngisiotY0M9aFSAOUdRRaG9v7cV_4UDoH-p52SsFKvKLk8GJRiLng5yCw2Fo-zoSWPtq8Q817qXn-PRTm6zOetptrRJZpq6PJYzb2Ly2ueI6GNH6qy2nXCjIojNcWT-Q" width="342" height="19"></span></span></p>
<p dir="ltr" style="line-height: 1.2; text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 12pt; font-family: Times,serif; color: #000000; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Figura 3. Importación de useState</span></p>
<p><b style="font-weight: normal;">&nbsp;</b></p>
<p dir="ltr" style="line-height: 1.2; text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 12pt; font-family: Times,serif; color: #000000; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span style="border: none; display: inline-block; overflow: hidden; width: 382px; height: 189px;"><img loading="lazy" decoding="async" style="margin-left: 0px; margin-top: 0px;" src="https://lh3.googleusercontent.com/510-IGAnl9MMwvfqjqdT1oDGMzskr-vR9G2uxfYGiXGlIGfUYNxA6GHn9F8nlY0VEB0nk0FkenPnQi7nsZVlMpH1P4u4jYuRE2bUT-IsHH6k9NBnTjRWdc7DcfgBu0WRhSXQIWXqt_e5EK3L0Q" width="382" height="189"></span></span></p>
<p dir="ltr" style="line-height: 1.2; text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 12pt; font-family: Times,serif; color: #000000; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Figura 4. Llamado de componente.</span></p>
<h3 dir="ltr" style="line-height: 1.2; margin-top: 16pt; margin-bottom: 4pt;"><span style="font-size: 13.999999999999998pt; font-family: Times,serif; color: #000000; background-color: transparent; font-weight: bold; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">UseState</span></h3>
<p dir="ltr" style="line-height: 1.2; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 12pt; font-family: Times,serif; color: #000000; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">La función useState permite añadir un estado interno a nuestros componentes para hacerlos dinámicos e interactivos. (Midudev, 2019)</span></p>
<p dir="ltr" style="line-height: 1.2; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 12pt; font-family: Times,serif; color: #000000; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">En el ejemplo de la figura 5, se declara una constante “text” mediante useState para cambiar el texto de un botón dependiendo su estado (true = “Texto 1” y false = “Texto 2”), cuando se da click la función handleClick cambia el estado de la constante “text”.</span></p>
<p><b style="font-weight: normal;">&nbsp;</b></p>
<div dir="ltr" style="margin-left: 0pt;" align="center">
<table style="border: none; border-collapse: collapse;">
<colgroup>
<col width="458"></colgroup>
<tbody>
<tr style="height: 235.4986049107142pt;">
<td style="vertical-align: top; padding: 5pt 5pt 5pt 5pt; overflow: hidden; overflow-wrap: break-word; border: solid #000000 1pt;">
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">import</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> React, </span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">{</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> useState </span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">}</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">from</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&#8220;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c3e88d; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">react</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&#8220;;</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;">
</p><p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">const</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #82aaff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">FirstExercise</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">=</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">()</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">=&gt;</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">{</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&nbsp;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">const</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">text, setText</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">]</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">=</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #82aaff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">useState</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">(</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #f07178; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">false</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">);</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;">
</p><p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&nbsp;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">const</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #82aaff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">handleClick</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">=</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">()</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">=&gt;</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">{</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&nbsp;&nbsp;&nbsp;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #82aaff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">setText</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">(!</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">text</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">);</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&nbsp;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">};</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;">
</p><p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&nbsp;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">return</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">(</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&nbsp;&nbsp;&nbsp;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&lt;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #f07178; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">div</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&gt;</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&lt;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #f07178; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">h1</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&gt;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Software Evolutivo</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&lt;/</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #f07178; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">h1</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&gt;</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&lt;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #f07178; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">button</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #ffcb6b; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">type</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">=&#8221;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c3e88d; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">button</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&#8220;</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #ffcb6b; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">onClick</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">={</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">handleClick</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">}&gt;</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">{</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">text </span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">?</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&#8220;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c3e88d; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Text 1</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&#8220;</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">:</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&#8220;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c3e88d; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Text 2</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&#8220;}</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&lt;/</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #f07178; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">button</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&gt;</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&nbsp;&nbsp;&nbsp;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&lt;/</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #f07178; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">div</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&gt;</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&nbsp;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">);</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">};</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">export</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">default</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> FirstExercise</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">;</span></p>
</td>
</tr>
</tbody>
</table>
</div>
<p><b style="font-weight: normal;">&nbsp;</b></p>
<p dir="ltr" style="line-height: 1.2; text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 12pt; font-family: Times,serif; color: #000000; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span style="border: none; display: inline-block; overflow: hidden; width: 261px; height: 89px;"><img loading="lazy" decoding="async" style="margin-left: 0px; margin-top: 0px;" src="https://lh4.googleusercontent.com/QKEHcCDcX6bPEQ0gevavKkHnlS8tsNMgon1TznTUTTAwwOEZNYuMZUrCwrOkdlEB99J-jCBxZ5TzMKzPnlgvWLgAyFqY2J45zT0u2iriXtxvjwzwDDtyEYnN2Lc3kGtiioXlDsTPSMs75M_lCg" width="261" height="89"></span></span></p>
<p><b style="font-weight: normal;">&nbsp;</b></p>
<p dir="ltr" style="line-height: 1.2; text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 12pt; font-family: Times,serif; color: #000000; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Figura 5. Uso de useState</span></p>
<h3 dir="ltr" style="line-height: 1.2; margin-top: 16pt; margin-bottom: 4pt;"><span style="font-size: 13.999999999999998pt; font-family: Times,serif; color: #000000; background-color: transparent; font-weight: bold; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">UseEffect</span></h3>
<p dir="ltr" style="line-height: 1.2; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 12pt; font-family: Times,serif; color: #000000; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">La función useEffect permite realizar efectos secundarios desde un componente de función, es similar a componentDidMount,componentDidUpdate y componentWillUnmount en las clases React, pero unificadas en una sola función. (React, 2022)</span></p>
<p><b style="font-weight: normal;">&nbsp;</b></p>
<p dir="ltr" style="line-height: 1.2; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 12pt; font-family: Times,serif; color: #000000; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">En el ejemplo de la figura 6, se utiliza la API de Rick and Morty para obtener una lista de datos y presentarlos en pantalla. Dicha lista se obtiene en la función useEffect cuando carga el componente, en caso de querer actualizarlo en base a algún estado se tiene que agregar dicho estado entre los corchetes finales de la función useEffect, como este no es el caso se lo deja vacío.</span></p>
<p><b style="font-weight: normal;"></b></p><b style="font-weight: normal;">
</b><p><b style="font-weight: normal;"></b></p>
<div dir="ltr" style="margin-left: 0pt;" align="center">
<table style="border: none; border-collapse: collapse;">
<colgroup>
<col width="454"></colgroup>
<tbody>
<tr style="height: 0pt;">
<td style="vertical-align: top; padding: 5pt 5pt 5pt 5pt; overflow: hidden; overflow-wrap: break-word; border: solid #000000 1pt;">
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">import</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> React, </span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">{</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> useState, useEffect </span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">}</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">from</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&#8220;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c3e88d; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">react</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&#8220;;</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;">
</p><p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">const</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #82aaff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">SecondExercise</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">=</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">()</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">=&gt;</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">{</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&nbsp;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">const</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">characters, setCharacters</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">]</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">=</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #82aaff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">useState</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">([]);</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;">
</p><p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&nbsp;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #82aaff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">useEffect</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">(()</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">=&gt;</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">{</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&nbsp;&nbsp;&nbsp;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #82aaff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">fetch</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">(&#8216;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c3e88d; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">https://rickandmortyapi.com/api/character/</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&#8216;)</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">.</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #82aaff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">then</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">(</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">response </span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">=&gt;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> response</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">.</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #82aaff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">json</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">())</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">.</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #82aaff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">then</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">(</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">data </span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">=&gt;</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #82aaff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">setCharacters</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">(</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">data</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">.</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #82aaff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">results</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">));</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&nbsp;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">}</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">, </span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[]);</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;">
</p><p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&nbsp;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">return</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">(</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&nbsp;&nbsp;&nbsp;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&lt;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #f07178; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">div</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&gt;</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">{</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">characters</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">.</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #82aaff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">map</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">(</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">character </span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">=&gt;</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">(</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&lt;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #f07178; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">h2</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&gt;{</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">character</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">.</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #82aaff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">name</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">}&lt;/</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #f07178; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">h2</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&gt;</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">))}</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&nbsp;&nbsp;&nbsp;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&lt;/</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #f07178; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">div</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&gt;</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&nbsp;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">);</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">};</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">export</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">default</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> SecondExercise</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">;</span></p>
</td>
</tr>
</tbody>
</table>
</div>
<p dir="ltr" style="line-height: 1.2; text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 12pt; font-family: Times,serif; color: #000000; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span style="border: none; display: inline-block; overflow: hidden; width: 287px; height: 265px;"><img loading="lazy" decoding="async" style="margin-left: 0px; margin-top: 0px;" src="https://lh4.googleusercontent.com/MJCKEsUucemjFMjJpv2VqS1KzE2PsC7aUqQEooLSrwe1ulR-5FJ3FAED3XOhU7YP9sgsSR9nNAR3vp5coU7lFRa4s4icqNs6Ey4jnR8rpCLH0F2KzERz6c0Sj3VhuS5Do-2LtWhgYvD-cosLzg" width="287" height="265"></span></span></p>
<p><b style="font-weight: normal;">&nbsp;</b></p>
<p dir="ltr" style="line-height: 1.2; text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 12pt; font-family: Times,serif; color: #000000; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Figura 6. Uso de useEffect</span></p>
<p><b style="font-weight: normal;">&nbsp;</b></p>
<h3 dir="ltr" style="line-height: 1.2; margin-top: 16pt; margin-bottom: 4pt;"><span style="font-size: 13.999999999999998pt; font-family: Times,serif; color: #000000; background-color: transparent; font-weight: bold; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">UseContext</span></h3>
<p dir="ltr" style="line-height: 1.2; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 12pt; font-family: Times,serif; color: #000000; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">La función useContext permite simplificar el manejo de estados entre los distintos componentes padre e hijos.</span></p>
<p><b style="font-weight: normal;">&nbsp;</b></p>
<p dir="ltr" style="line-height: 1.2; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 12pt; font-family: Times,serif; color: #000000; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Formas de utilizar useContext:</span></p>
<ul style="margin-top: 0; margin-bottom: 0; padding-inline-start: 48px;">
<li dir="ltr" style="list-style-type: disc; font-size: 12pt; font-family: Times,serif; color: #000000; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre;" aria-level="1">
<p dir="ltr" style="line-height: 1.2; margin-top: 0pt; margin-bottom: 0pt;" role="presentation"><span style="font-size: 12pt; font-family: Times,serif; color: #000000; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Correct: useContext(MyContext)</span></p>
</li>
<li dir="ltr" style="list-style-type: disc; font-size: 12pt; font-family: Times,serif; color: #000000; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre;" aria-level="1">
<p dir="ltr" style="line-height: 1.2; margin-top: 0pt; margin-bottom: 0pt;" role="presentation"><span style="font-size: 12pt; font-family: Times,serif; color: #000000; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Incorrect: useContext(MyContext.Consumer)</span></p>
</li>
<li dir="ltr" style="list-style-type: disc; font-size: 12pt; font-family: Times,serif; color: #000000; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre;" aria-level="1">
<p dir="ltr" style="line-height: 1.2; margin-top: 0pt; margin-bottom: 0pt;" role="presentation"><span style="font-size: 12pt; font-family: Times,serif; color: #000000; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Incorrect: useContext(MyContext.Provider). (React, 2022)</span></p>
</li>
</ul>
<p><b style="font-weight: normal;">&nbsp;</b></p>
<p dir="ltr" style="line-height: 1.2; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 12pt; font-family: Times,serif; color: #000000; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Para este ejemplo como se puede apreciar en las figuras 7 y 8 respectivamente, se crea un contexto, en este caso crearemos un nuevo archivo dentro de src/context llamado ThemeContext, posteriormente, desde index.js importamos el archivo creado para encapsular la aplicación sobre el provider en este caso con un value igual a blue</span></p>
<p><b style="font-weight: normal;">&nbsp;</b></p>
<div dir="ltr" style="margin-left: 0pt;" align="center">
<table style="border: none; border-collapse: collapse;">
<colgroup>
<col width="480"></colgroup>
<tbody>
<tr style="height: 0pt;">
<td style="vertical-align: top; padding: 5pt 5pt 5pt 5pt; overflow: hidden; overflow-wrap: break-word; border: solid #000000 1pt;">
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">import</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> React </span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">from</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&#8216;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c3e88d; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">react</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&#8216;;</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">const</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> ThemeContext </span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">=</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> React</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">.</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #82aaff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">createContext</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">(</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #f07178; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">null</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">);</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">export</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">default</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> ThemeContext</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">;</span></p>
</td>
</tr>
</tbody>
</table>
</div>
<p><b style="font-weight: normal;">&nbsp;</b></p>
<p dir="ltr" style="line-height: 1.2; text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 12pt; font-family: Times,serif; color: #000000; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Figura 7. Creación del contexto</span></p>
<p><b style="font-weight: normal;"></b></p><b style="font-weight: normal;">
</b><p><b style="font-weight: normal;"></b></p>
<div dir="ltr" style="margin-left: 0pt;" align="center">
<table style="border: none; border-collapse: collapse;">
<colgroup>
<col width="476"></colgroup>
<tbody>
<tr style="height: 0pt;">
<td style="vertical-align: top; padding: 5pt 5pt 5pt 5pt; overflow: hidden; overflow-wrap: break-word; border: solid #000000 1pt;">
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 10.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">import</span><span style="font-size: 10.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> React </span><span style="font-size: 10.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">from</span> <span style="font-size: 10.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&#8216;</span><span style="font-size: 10.5pt; font-family: 'Courier New'; color: #c3e88d; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">react</span><span style="font-size: 10.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&#8216;;</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 10.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">import</span><span style="font-size: 10.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> ReactDOM </span><span style="font-size: 10.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">from</span> <span style="font-size: 10.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&#8216;</span><span style="font-size: 10.5pt; font-family: 'Courier New'; color: #c3e88d; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">react-dom</span><span style="font-size: 10.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&#8216;;</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 10.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">import</span> <span style="font-size: 10.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&#8216;</span><span style="font-size: 10.5pt; font-family: 'Courier New'; color: #c3e88d; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">./index.css</span><span style="font-size: 10.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&#8216;;</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 10.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">import</span><span style="font-size: 10.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> App </span><span style="font-size: 10.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">from</span> <span style="font-size: 10.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&#8216;</span><span style="font-size: 10.5pt; font-family: 'Courier New'; color: #c3e88d; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">./App</span><span style="font-size: 10.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&#8216;;</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 10.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">import</span><span style="font-size: 10.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> ThemeContext </span><span style="font-size: 10.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">from</span> <span style="font-size: 10.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&#8216;</span><span style="font-size: 10.5pt; font-family: 'Courier New'; color: #c3e88d; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">./context/ThemeContext</span><span style="font-size: 10.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&#8216;;</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;">
</p><p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 10.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">ReactDOM</span><span style="font-size: 10.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">.</span><span style="font-size: 10.5pt; font-family: 'Courier New'; color: #82aaff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">render</span><span style="font-size: 10.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">(</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 10.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&nbsp;</span><span style="font-size: 10.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&lt;</span><span style="font-size: 10.5pt; font-family: 'Courier New'; color: #f07178; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">React.StrictMode</span><span style="font-size: 10.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&gt;</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 10.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&nbsp;&nbsp;&nbsp;</span><span style="font-size: 10.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&lt;</span><span style="font-size: 10.5pt; font-family: 'Courier New'; color: #f07178; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">ThemeContext.Provider</span> <span style="font-size: 10.5pt; font-family: 'Courier New'; color: #ffcb6b; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">value</span><span style="font-size: 10.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">=&#8221;</span><span style="font-size: 10.5pt; font-family: 'Courier New'; color: #c3e88d; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">blue</span><span style="font-size: 10.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&#8220;&gt;</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 10.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 10.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&lt;</span><span style="font-size: 10.5pt; font-family: 'Courier New'; color: #f07178; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">App</span> <span style="font-size: 10.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">/&gt;</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 10.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&nbsp;&nbsp;&nbsp;</span><span style="font-size: 10.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&lt;/</span><span style="font-size: 10.5pt; font-family: 'Courier New'; color: #f07178; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">ThemeContext.Provider</span><span style="font-size: 10.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&gt;</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 10.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&nbsp;</span><span style="font-size: 10.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&lt;/</span><span style="font-size: 10.5pt; font-family: 'Courier New'; color: #f07178; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">React.StrictMode</span><span style="font-size: 10.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&gt;</span><span style="font-size: 10.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">,</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 10.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&nbsp;document</span><span style="font-size: 10.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">.</span><span style="font-size: 10.5pt; font-family: 'Courier New'; color: #82aaff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">getElementById</span><span style="font-size: 10.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">(&#8216;</span><span style="font-size: 10.5pt; font-family: 'Courier New'; color: #c3e88d; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">root</span><span style="font-size: 10.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&#8216;)</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 10.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">);</span></p>
</td>
</tr>
</tbody>
</table>
</div>
<p><b style="font-weight: normal;">&nbsp;</b></p>
<p dir="ltr" style="line-height: 1.2; text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 12pt; font-family: Times,serif; color: #000000; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Figura 8. Importación del contexto creado</span></p>
<p><b style="font-weight: normal;">&nbsp;</b></p>
<p dir="ltr" style="line-height: 1.2; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 12pt; font-family: Times,serif; color: #000000; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Finalmente en la figura 9, se implementará el useContext dentro del ejercicio que realizamos para useState de tal manera que obtenga el valor que establecimos y se pinte el título en este caso de color azul.</span></p>
<p><b style="font-weight: normal;">&nbsp;</b></p>
<div dir="ltr" style="margin-left: 0pt;" align="center">
<table style="border: none; border-collapse: collapse;">
<colgroup>
<col width="498"></colgroup>
<tbody>
<tr style="height: 0pt;">
<td style="vertical-align: top; padding: 5pt 5pt 5pt 5pt; overflow: hidden; overflow-wrap: break-word; border: solid #000000 1pt;">
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">import</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> React, </span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">{</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> useState, useContext </span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">}</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">from</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&#8220;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c3e88d; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">react</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&#8220;;</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">import</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> ThemeContext </span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">from</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&#8220;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c3e88d; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">../context/ThemeContext</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&#8220;;</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;">
</p><p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">const</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #82aaff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">ThirdExercise</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">=</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">()</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">=&gt;</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">{</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&nbsp;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">const</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">text, setText</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">]</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">=</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #82aaff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">useState</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">(</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #f07178; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">false</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">);</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&nbsp;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">const</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> color </span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">=</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #82aaff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">useContext</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">(</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">ThemeContext</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">)</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;">
</p><p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&nbsp;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">const</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #82aaff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">handleClick</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">=</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">()</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">=&gt;</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">{</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&nbsp;&nbsp;&nbsp;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #82aaff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">setText</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">(!</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">text</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">);</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&nbsp;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">}</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;">
</p><p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&nbsp;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">return</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">(</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&nbsp;&nbsp;&nbsp;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&lt;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #f07178; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">div</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&gt;</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&lt;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #f07178; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">h1</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #ffcb6b; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">style</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">={{</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> color </span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">}}&gt;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Software Evolutivo</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&lt;/</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #f07178; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">h1</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&gt;</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&lt;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #f07178; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">button</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #ffcb6b; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">type</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">=&#8221;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c3e88d; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">button</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&#8220;</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #ffcb6b; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">onClick</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">={</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">handleClick</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">}&gt;</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">{</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">text </span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">?</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&#8220;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c3e88d; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Text 1</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&#8220;:</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&#8220;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c3e88d; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Text 2</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&#8220;}</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&lt;/</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #f07178; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">button</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&gt;</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&nbsp;&nbsp;&nbsp;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&lt;/</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #f07178; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">div</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&gt;</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&nbsp;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">);</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">};</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">export</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">default</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> ThirdExercise</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">;</span></p>
</td>
</tr>
</tbody>
</table>
</div>
<p dir="ltr" style="line-height: 1.2; text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 12pt; font-family: Times,serif; color: #000000; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span style="border: none; display: inline-block; overflow: hidden; width: 219px; height: 82px;"><img loading="lazy" decoding="async" style="margin-left: 0px; margin-top: 0px;" src="https://lh5.googleusercontent.com/__3o07sAO6rZzqbpi5OxfoyGZWEvL9Kng8AP9MYx6bitmUKrCgdqDKBrJ5Jm7R9Gvy8ruVhrSaPgly6YgfOzG2DXXusIAZG60W7FKKN-5EMw7h6L5L_Tf76PWmXiCZwH899aLpbxn6OTOkWunQ" width="219" height="82"></span></span></p>
<p><b style="font-weight: normal;">&nbsp;</b></p>
<p dir="ltr" style="line-height: 1.2; text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 12pt; font-family: Times,serif; color: #000000; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Figura 9. Uso de useContext</span></p>
<h3 dir="ltr" style="line-height: 1.2; margin-top: 16pt; margin-bottom: 4pt;"><span style="font-size: 13.999999999999998pt; font-family: Times,serif; color: #000000; background-color: transparent; font-weight: bold; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">UseReducer</span></h3>
<p dir="ltr" style="line-height: 1.2; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 12pt; font-family: Times,serif; color: #000000; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">La función useReducer permite actualizar un estado interno por medio de una función llamada reducer. Puede ser una alternativa a useState. (React, 2022)</span></p>
<p><b style="font-weight: normal;">&nbsp;</b></p>
<p dir="ltr" style="line-height: 1.2; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 12pt; font-family: Times,serif; color: #000000; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">En el ejemplo de la figura 10, realizaremos el incremento o decremento de clicks mediante la llamada a la función reducer, la cual es llamada mediante el hook useReducer que recibe dos parámetros, el primero es la función reducer y el segundo un estado (initialState). Este estado inicial se actualiza en la función reducer dependiendo el tipo que es enviado como parámetro en la función onClick de cada botón que llama mediante al reducer y almacenado en la constante “state” mediante la cual se puede reflejar el cambio en pantalla.</span></p>
<p><b style="font-weight: normal;">&nbsp;</b></p>
<p dir="ltr" style="line-height: 1.2; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 12pt; font-family: Times,serif; color: #000000; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Nota: No es una alternativa a Redux.</span></p>
<p><b style="font-weight: normal;">&nbsp;</b></p>
<div dir="ltr" style="margin-left: 0pt;" align="center">
<table style="border: none; border-collapse: collapse;">
<colgroup>
<col width="525"></colgroup>
<tbody>
<tr style="height: 0pt;">
<td style="vertical-align: top; padding: 5pt 5pt 5pt 5pt; overflow: hidden; overflow-wrap: break-word; border: solid #000000 1pt;">
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">import</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> React, </span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">{</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> useReducer </span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">}</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">from</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&#8220;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c3e88d; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">react</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&#8220;;</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;">
</p><p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">const</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> initialState </span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">=</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">{</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&nbsp;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #73d1c8; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">count</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">:</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #f78c6a; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">0</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">};</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;">
</p><p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">const</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #82aaff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">reducer</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">=</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">(</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">state</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">,</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> action</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">)</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">=&gt;</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">{</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">switch</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">(</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">action</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">.</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #82aaff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">type</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">)</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">{</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&nbsp;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">case</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&#8216;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c3e88d; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">increment</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&#8216;:</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&nbsp;&nbsp;&nbsp;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">return</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">{</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #73d1c8; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">count</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">:</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> state</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">.</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #82aaff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">count</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">+</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #f78c6a; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">1</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">};</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&nbsp;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">case</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&#8216;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c3e88d; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">decrement</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&#8216;:</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&nbsp;&nbsp;&nbsp;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">return</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">{</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #73d1c8; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">count</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">:</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> state</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">.</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #82aaff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">count</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&#8211;</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #f78c6a; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">1</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">};</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&nbsp;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">default</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">:</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&nbsp;&nbsp;&nbsp;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">throw</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">new</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #ffcb6b; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Error</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">();</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">}</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">}</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;">
</p><p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">const</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #82aaff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">FourthExercise</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">=</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">()</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">=&gt;</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">{</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&nbsp;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">const</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">[</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">state, dispatch</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">]</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">=</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #82aaff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">useReducer</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">(</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">reducer, initialState</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">);</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;">
</p><p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&nbsp;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">return</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">(</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&nbsp;&nbsp;&nbsp;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&lt;&gt;</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Count: </span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">{</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">state</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">.</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #82aaff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">count</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">}</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&lt;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #f07178; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">button</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #ffcb6b; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">onClick</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">={()</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">=&gt;</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #82aaff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">dispatch</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">({</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #73d1c8; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">type</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">:</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&#8216;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c3e88d; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">decrement</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&#8216;})}&gt;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&#8211;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&lt;/</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #f07178; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">button</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&gt;</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&lt;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #f07178; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">button</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #ffcb6b; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">onClick</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">={()</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">=&gt;</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #82aaff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">dispatch</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">({</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #73d1c8; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">type</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">:</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&#8216;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c3e88d; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">increment</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&#8216;})}&gt;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">+</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&lt;/</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #f07178; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">button</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&gt;</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&nbsp;&nbsp;&nbsp;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&lt;/&gt;</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">&nbsp;</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">);</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">};</span></p>
<p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;">
</p><p dir="ltr" style="line-height: 1.6285714285714286; background-color: #263238; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">export</span> <span style="font-size: 9.5pt; font-family: 'Courier New'; color: #c792ea; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">default</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #eeffff; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> FourthExercise</span><span style="font-size: 9.5pt; font-family: 'Courier New'; color: #89ddf3; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">;</span></p>
</td>
</tr>
</tbody>
</table>
</div>
<p><b style="font-weight: normal;">&nbsp;</b></p>
<p dir="ltr" style="line-height: 1.2; text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 12pt; font-family: Times,serif; color: #000000; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span style="border: none; display: inline-block; overflow: hidden; width: 142px; height: 38px;"><img loading="lazy" decoding="async" style="margin-left: 0px; margin-top: 0px;" src="https://lh3.googleusercontent.com/T2AcaGDNsElcOLCn4oqjjsgj6TEp5GyRNF7KP0zquQDsipv--x8J_uQOX33gygtQ_g2_3h4YSLYSfl1iiwRWcO0y7uvDyOQzfMlUfuEWPMRDPlx-wwywGLGGDS8eDLtBlK8hUotfpOBbtXpLKw" width="142" height="38"></span></span></p>
<p dir="ltr" style="line-height: 1.2; text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 12pt; font-family: Times,serif; color: #000000; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Figura 10. Uso de useReducer</span></p>
<p><b style="font-weight: normal;">&nbsp;</b></p>
<h1 dir="ltr" style="line-height: 1.2; margin-top: 20pt; margin-bottom: 6pt;"><span style="font-size: 13.999999999999998pt; font-family: Times,serif; color: #000000; background-color: transparent; font-weight: bold; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Referencias</span></h1>
<p><b style="font-weight: normal;">&nbsp;</b></p>
<p dir="ltr" style="line-height: 2.4; text-indent: -36pt; margin-top: 0pt; margin-bottom: 0pt; padding: 0pt 0pt 0pt 36pt;"><span style="font-size: 11pt; font-family: Arial; color: #000000; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Capparelli, A. (2020). </span><span style="font-size: 11pt; font-family: Arial; color: #000000; background-color: transparent; font-weight: 400; font-style: italic; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Qué son los hooks y cómo utilizarlos en tu proyecto con React.</span><span style="font-size: 11pt; font-family: Arial; color: #000000; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> Paradigma. https://www.paradigmadigital.com/dev/hooks-como-utilizarlos-react/</span></p>
<p dir="ltr" style="line-height: 2.4; text-indent: -36pt; margin-top: 0pt; margin-bottom: 0pt; padding: 0pt 0pt 0pt 36pt;"><span style="font-size: 11pt; font-family: Arial; color: #000000; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Medina, K. (2021, 05 10). </span><span style="font-size: 11pt; font-family: Arial; color: #000000; background-color: transparent; font-weight: 400; font-style: italic; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Introducción a React Hooks</span><span style="font-size: 11pt; font-family: Arial; color: #000000; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">. https://medium.com/nowports-tech/introducci%C3%B3n-a-react-hooks-55918188c5e2</span></p>
<p dir="ltr" style="line-height: 2.4; text-indent: -36pt; margin-top: 0pt; margin-bottom: 0pt; padding: 0pt 0pt 0pt 36pt;"><span style="font-size: 11pt; font-family: Arial; color: #000000; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Midudev. (2019, February 7). </span><span style="font-size: 11pt; font-family: Arial; color: #000000; background-color: transparent; font-weight: 400; font-style: italic; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">React hooks, cómo utilizar el hook useState</span><span style="font-size: 11pt; font-family: Arial; color: #000000; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">. midudev ‍. https://midu.dev/react-hooks-use-state-anadiendo-estado-a-nuestro-componente-funcional/</span></p>
<p dir="ltr" style="line-height: 2.4; text-indent: -36pt; margin-top: 0pt; margin-bottom: 0pt; padding: 0pt 0pt 0pt 36pt;"><span style="font-size: 11pt; font-family: Arial; color: #000000; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">React. (2022). </span><span style="font-size: 11pt; font-family: Arial; color: #000000; background-color: transparent; font-weight: 400; font-style: italic; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Hooks API Reference – React</span><span style="font-size: 11pt; font-family: Arial; color: #000000; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">. React. https://reactjs.org/docs/hooks-reference.html</span></p>
<p><span style="font-size: 11pt; font-family: Arial; color: #000000; background-color: transparent; font-variant-numeric: normal; font-variant-east-asian: normal; vertical-align: baseline; white-space: pre-wrap;">React. (2022). </span><span style="font-size: 11pt; font-family: Arial; color: #000000; background-color: transparent; font-style: italic; font-variant-numeric: normal; font-variant-east-asian: normal; vertical-align: baseline; white-space: pre-wrap;">Using the Effect Hook – React</span><span style="font-size: 11pt; font-family: Arial; color: #000000; background-color: transparent; font-variant-numeric: normal; font-variant-east-asian: normal; vertical-align: baseline; white-space: pre-wrap;">. React. https://reactjs.org/docs/hooks-effect.html</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				</div>
		<p>The post <a href="https://softwareevolutivo.com.ec/react-hooks/">Enganchémonos con REACT HOOKS!</a> appeared first on <a href="https://softwareevolutivo.com.ec">Software Evolutivo</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://softwareevolutivo.com.ec/react-hooks/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
