এক নজরে React Reference

এই অংশে React নিয়ে কাজ করার জন্য বিস্তারিত রেফারেন্স ডকুমেন্টেশন রয়েছে। React এর সাথে পরিচিত হবার জন্য Learn অংশ দেখুন।

React reference documentation কয়েকটি ফাংশনাল অংশে ভাগ করা হয়েছেঃ

React

Programmatic React ফিচারঃ

  • Hooks - আপনার কম্পোনেন্ট থেকে বিভিন্ন React ফিচার ব্যবহার করুন।
  • Components - যেসব বিল্ট-ইন কম্পোনেন্ট আপনার JSX এ ব্যবহার করতে পারেন।
  • APIs - কম্পোনেন্ট ডিফাইন করার জন্য কার্যকরী API।
  • Directives - সার্ভার কম্পোনেন্টের সাথে যেসব bundlers ব্যবহারোপযোগী তাদের কার্যপ্রণালী।

React DOM

React-dom contains features that are only supported for web applications (which run in the browser DOM environment). This section is broken into the following:

  • Hooks - ওয়েব এপ্লিকেশনের জন্য hooks যা ব্রাউজারের DOM এনভায়রনমেন্টে চলে।
  • Components - React ব্রাউজারের সকল বিল্ট-ইন HTML এবং SVG কম্পোনেন্ট সাপোর্ট করে।
  • APIs - react-dom প্যাকেজে সেই সব মেথড রয়েছে যার শুধু মাত্র ওয়েব এপ্লিকেশনে সাপোর্ট আছে।
  • Client APIs - react-dom/client API গুলো আপনাকে ক্লায়েন্টে (ব্রাউজারে) React কম্পোনেন্ট রেন্ডার করার সুযোগ দেয়।
  • Server APIs - react-dom/server API গুলো আপনাকে সার্ভারে React কম্পোনেন্ট থেকে HTML এ রেন্ডারের সুযোগ দেয়।

Rules of React

React has idioms — or rules — for how to express patterns in a way that is easy to understand and yields high-quality applications:

  • Components and Hooks must be pure – Purity makes your code easier to understand, debug, and allows React to automatically optimize your components and hooks correctly.
  • React calls Components and Hooks – React is responsible for rendering components and hooks when necessary to optimize the user experience.
  • Rules of Hooks – Hooks are defined using JavaScript functions, but they represent a special type of reusable UI logic with restrictions on where they can be called.

Legacy APIs

  • Legacy APIs - React প্যাকেজ থেকে এক্সপোর্ট করা হয়েছে এমন, কিন্তু নতুন কোডে ব্যবহারে নিরুৎসাহিত করা হবে।