Components, props, state, hooks, rendering, context, performance.
این مجموعه فلشکارت برای مرور و تثبیت مفاهیم کلیدی ری اکت طراحی شده است. سوالات روی کارتها کوتاه و پاسخها دقیق هستند تا به خاطر سپردن مباحث فشرده آسانتر شود.
محتوای این دک شامل کامپوننتها، پراپها، استیت، هوکها، چرخه رندر، کانتکست و بهینهسازی عملکرد است. این مباحث هم برای توسعهدهندگان شاغل و هم برای افرادی که برای مصاحبههای کاری آماده میشوند کاربرد دارد.
با استفاده از سیستم تکرار با فاصله (SRS) در یادمد، میتوانید این کارتها را در بازههای زمانی مشخص مرور کنید تا اطلاعات از حافظه کوتاه مدت به حافظه بلند مدت منتقل شوند.
۱۲ کارت اول از ۷۰ — رو و پشت هر کارت
What is a React component?
A reusable, self-contained piece of UI that can accept inputs and return React elements describing what should appear on the screen.
What is the difference between a functional component and a class component?
Functional components are JavaScript functions that return JSX and use hooks for state and lifecycle, while class components are ES6 classes that extend React.Component and use lifecycle methods.
What are props in React?
Read-only inputs passed from a parent component to a child component to configure its behavior or display data.
Can a component modify its own props?
No, props are strictly immutable. A component must never mutate the props it receives from its parent.
What is state in React?
An internal, mutable data store managed by a component that determines its behavior and rendering output over time.
What happens when a component's state changes?
React triggers a re-render of that component to update the UI with the new state values.
What is the main purpose of React hooks?
To allow functional components to use state, lifecycle methods, and other React features without writing class components.
What does the useState hook return?
An array containing two elements: the current state value and a function to update that state.
Why should you use the updater function form when updating state based on previous state?
To ensure that state updates are based on the most current state value, avoiding race conditions caused by asynchronous batching.
What is the primary purpose of the useEffect hook?
To perform side effects in functional components, such as data fetching, subscriptions, or manually changing the DOM.
When does a useEffect callback run by default?
After every completed render of the component.
What is the role of the dependency array in useEffect?
It tells React to skip running the effect unless one of the specified dependencies has changed since the last render.
این مجموعه برای افراد آشنا با جاوا اسکریپت و اصول اولیه ری اکت که قصد دارند دانش خود را تثبیت کنند یا برای مصاحبه آماده شوند، مناسب است.
روزی ۱۰ تا ۱۵ دقیقه برای مرور کارتهای جدید و مرورهای روزانه کافی است تا روند یادگیری پایدار بماند.
خیر، این کارتها مفاهیم اصلی و پرتکرار ری اکت را پوشش میدهند که در اکثر مصاحبههای فرانتاند پرسیده میشوند، اما سوالات هر مصاحبه ممکن است متفاوت باشد.
هنوز کسی آزمون نداده؛ اولین نفر باش.
تا ۲۰ سؤال چهارگزینهای از همین دسته، ۳۰ ثانیه برای هر سؤال. خودت را بسنج و رتبهات را میان بقیه ببین. هر نفر فقط یکبار میتواند شرکت کند.
برای شرکت در آزمون وارد شو