Use (7) 썸네일형 리스트형 Hooks - useRef (Creating a Reference to Elements) In vanilla JS, we can get elements by creating a reference to the DOM element to change them dynamically. On the other hand, in React, not only is not possible to use the document object in a component but also we can access the element directly and change the value of attributes. But if there is a way to get access to elements as we do with vanilla JS in React, it would not hurt to have the ski.. Hooks - useEffect (Catching Changes in a Component) The useEffect is a hook that catches changes in a component. It works similarly to event or setInterval and using this we can update the component whenever there is a change. Setting Up a Project Creating a React App React React is the most papular framework followed by Angular and Vue. React, like Angular uses components to build an application. However, React does not come with native features.. Hooks - useContext(Global State) The useContext is one of the hooks in React. It manages the status of the application like useState with a twist that it does this on a global scope. So unlike useState where a status should be passed from one component to another, any component can access the context regardless of its position hence making it an excellent fit for global status management. HTML 삽입 미리보기할 수 없는 소스 Reusable Component - Reactive Forms Inputs The reusability of components is one of the main advantages of using a framework such as Angular. Today, we will see how we can create an reusable input component in Angular. Implementaion Adding a Module Add the ReactiveFormsModule in the module.ts class Creating a Component Add a component to get the inputs ng g c components/shared/input To link the form controller and the DOM element, add inh.. React Hooks - UseParams / UseSearchParams (React Router DOM) It is common to use URLs to send additional information such as the id of an item. React Router DOM is one of the React libraries that makes working with routings easy. Today we will see how we can use its hooks to add a parameter or queries and get the value from them. Project Set Up Creating a React Project React React is the most papular framework followed by Angular and Vue. React, like Angu.. React Library - React Router DOM React, by nature, does not have a routing feature. React Router DOM is one of the React library packages; with this, we can easily create routing between pages. Let's see how we can use this library. HTML 삽입 미리보기할 수 없는 소스 Google Tag Manager - Reusing Tags and Triggers If you need to set up multiple conversions from the same Google Ads account, you can use the copy feature to avoid repatitive configurations Implementation Copying a tag or a trigger is similar across all types of tags. So I tage conversion tag as an example here. Copying Tags In the GTM account, 'workspace' -> 'tag' -> Select a tag to copy Click the three dots icon on the top right -> Select 'c.. 이전 1 다음