Skip to content

ShahroozD/Recruitment-Task

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

فارسی

برو به انگلیسی

تمرین استخدامی

به تمرین استخدامی ما خوش آمدید. در این تمرین، ما یک کتابخانه ساده ایجاد کرده‌ایم که از React الهام گرفته شده است. هدف شما این است که قالب کد ارائه‌شده را تحلیل کرده و تابع useEffect را تکمیل کنید. این تابع باید اطمینان حاصل کند که تابع داخلی آن بر اساس وابستگی‌های مشخص شده در زمان اجرای برنامه به درستی اجرا می‌شود.

شما می‌توانید کدها را در فایل task.tsx پیدا کنید.

دستورالعمل‌ها

  1. تحلیل فایل کد ارائه‌شده.
  2. تکمیل تابع useEffect در task.tsx.
  3. اطمینان حاصل کنید که تابع داخلی useEffect بر اساس وابستگی‌های مشخص شده به درستی اجرا می‌شود.

راه‌اندازی و نصب

برای شروع پروژه، مراحل زیر را دنبال کنید:

  1. مخزن را کلون کنید:

    git clone https://github.com/ShahroozD/Recruitment-Task
    cd Recruitment-Task
  2. وابستگی‌های مورد نیاز را نصب کنید:

    npm install
  3. پکیج TypeScript را نصب کنید:

    npm install -D typescript
  4. دستور زیر را اجرا کنید تا کدهای شما کامپایل شود:

    npm run dev
  5. سرور توسعه را راه‌اندازی کنید:

    npx serve .

English

Go to Persian

Recruitment Task

Welcome to our recruitment task. In this exercise, we have created a simplified library inspired by React. Your objective is to analyze the provided code template and complete the useEffect function. This function should ensure that its inner function executes correctly based on its dependencies when the program runs.

You can find the code template in the task.tsx file.

Instructions

  1. Analyze the provided code template.
  2. Complete the useEffect function in task.tsx.
  3. Ensure that the inner function of useEffect executes according to the specified dependencies.

Setup and Installation

To get started with the project, follow these steps:

  1. Clone the repository:

    git clone https://github.com/ShahroozD/Recruitment-Task
    cd Recruitment-Task
  2. Install the required dependencies:

    npm install
  3. (Optional) If you want to use TypeScript, install it as a development dependency:

    npm install -D typescript
  4. Start the development env:

    npm run dev
  5. Serve the project:

    npx serve .

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published