Modern DevOps Day 4.pdfModern DevOps Day 4.pdfModern DevOps Day 4.pdfModern DevOps Day 4.pdfModern DevOps Day 4.pdfModern DevOps Day 4.pdfModern DevOps Day 4.pdfModern DevOps Day 4.pdfModern DevOps Day 4.pdfModern DevOps Day 4.pdf
Modern DevOps Day 2.pdfModern DevOps Day 2.pdfModern DevOps Day 2.pdfModern DevOps Day 2.pdfModern DevOps Day 2.pdfModern DevOps Day 2.pdfModern DevOps Day 2.pdfModern DevOps Day 2.pdfModern DevOps Day 2.pdf
9 logging and monitoring.pdf 9 logging and monitoring.pdfNuttavutThongjor1
Babel Coder is a tool that provides access to the Elastic Stack and Grafana. It mentions Babel Coder and its integration with the Elastic Stack and Grafana in a repetitive manner without providing many details about the product, its features, or benefits.
The document discusses Kubernetes concepts including pods, deployments, services, and configmaps. It shows examples of running pods and deployments. It also demonstrates different service types like ClusterIP, NodePort, and LoadBalancer and how to access applications using services. Finally, it provides an example of creating a configmap from a file and referencing it in a deployment.
This document provides an overview of Angular fundamentals including components, directives, pipes, services, and reactive programming concepts. It defines components as reusable UI building blocks that control a view. It demonstrates core directives like NgFor, NgIf, and NgSwitch. It also covers lifecycle hooks, built-in and custom pipes, dependency injection with services, RxJS observables, and reactive programming concepts like streams and operators.
The document discusses different approaches to organizing code for a MEAN stack application, including using multiple repositories, a monorepository, or an NX workspace. It also covers component-based and feature-based approaches to code organization, with the component-based approach grouping related UI components together and the feature-based approach grouping code for an feature together, such as all code related to retrieving articles from an API.
This document discusses state management tools for JavaScript applications. It mentions Babel Coder, PINIA, and multiple stores for state including store, store, store, ui, user, and conf.
More Related Content
Similar to Next.js web development.pdfNext.js web development.pdfNext.js web development.pdfNext.js web development.pdf (6)
Modern DevOps Day 2.pdfModern DevOps Day 2.pdfModern DevOps Day 2.pdfModern DevOps Day 2.pdfModern DevOps Day 2.pdfModern DevOps Day 2.pdfModern DevOps Day 2.pdfModern DevOps Day 2.pdfModern DevOps Day 2.pdf
9 logging and monitoring.pdf 9 logging and monitoring.pdfNuttavutThongjor1
Babel Coder is a tool that provides access to the Elastic Stack and Grafana. It mentions Babel Coder and its integration with the Elastic Stack and Grafana in a repetitive manner without providing many details about the product, its features, or benefits.
The document discusses Kubernetes concepts including pods, deployments, services, and configmaps. It shows examples of running pods and deployments. It also demonstrates different service types like ClusterIP, NodePort, and LoadBalancer and how to access applications using services. Finally, it provides an example of creating a configmap from a file and referencing it in a deployment.
This document provides an overview of Angular fundamentals including components, directives, pipes, services, and reactive programming concepts. It defines components as reusable UI building blocks that control a view. It demonstrates core directives like NgFor, NgIf, and NgSwitch. It also covers lifecycle hooks, built-in and custom pipes, dependency injection with services, RxJS observables, and reactive programming concepts like streams and operators.
The document discusses different approaches to organizing code for a MEAN stack application, including using multiple repositories, a monorepository, or an NX workspace. It also covers component-based and feature-based approaches to code organization, with the component-based approach grouping related UI components together and the feature-based approach grouping code for an feature together, such as all code related to retrieving articles from an API.
This document discusses state management tools for JavaScript applications. It mentions Babel Coder, PINIA, and multiple stores for state including store, store, store, ui, user, and conf.
This document discusses different rendering modes for Babel Coder including client-side rendering, server-side rendering, and prerendering. It mentions APIs for client-side and server-side rendering and examples of URLs and files involved in prerendering and the stale-while-revalidate approach.
35. Babel Coder
Babel Coder
https://www.babelcoder.com
Mounted
LIFE CYCLE
Clean Up Updated
สถานะที่ Client Components
แสดงผลบน DOM แล้ว
สถานะที่ Client Components
อัพเดทการแสดงผลบน DOM แล้ว
เมื่อ state หรือ props ที่สนใจเปลี่ยนค่า หรือเมื่อ
คอมโพแนนท์กำลังจะสิ้นสุดการทำงานจะทำการ
เรียก clean up function
กรณีที่มีการเปลี่ยนแปลงค่า state หรือ props
ที่สนใจ และกระบวนการของ clean up
function เสร็จสิ้น จะเข้าสู่สถานะการแสดงผล
ใหม่
36. Babel Coder
Babel Coder
https://www.babelcoder.com
LIFE CYCLE
useEffect(() => {
return () => {
}
}, [deps])
ฟังก์ชันนี้จะถูกเรียกทุกครั้งที่เข้าสู่สถานะ
Mounted หรือ Updated
ฟังก์ชันนี้เรียกว่า cleanup function
จะถูกเรียกก่อนคอมโพแนนท์จะสิ้นสุดการ
ทำงาน หรือเมื่อ state หรือ props ใน
deps เปลี่ยนแปลง cleanup function
จะถูกเรียกก่อน ก่อนจะเข้าสู่สถานะ
undated