Legacy React API-கள்

இந்த API-கள் react package-இலிருந்து export செய்யப்படுகின்றன, ஆனால் புதிதாக எழுதப்படும் code-இல் பயன்படுத்த பரிந்துரைக்கப்படவில்லை. பரிந்துரைக்கப்படும் மாற்று வழிகளுக்கு, இணைக்கப்பட்டுள்ள தனித்தனி API பக்கங்களைப் பாருங்கள்.


Legacy API-கள்


நீக்கப்பட்ட API-கள்

இந்த API-கள் React 19-இல் நீக்கப்பட்டன:

  • createFactory: இதற்கு பதிலாக JSX-ஐப் பயன்படுத்துங்கள்.
  • Class Components: static contextTypes: இதற்கு பதிலாக static contextType-ஐப் பயன்படுத்துங்கள்.
  • Class Components: static childContextTypes: இதற்கு பதிலாக static contextType-ஐப் பயன்படுத்துங்கள்.
  • Class Components: static getChildContext: இதற்கு பதிலாக Context-ஐப் பயன்படுத்துங்கள்.
  • Class Components: static propTypes: இதற்கு பதிலாக TypeScript போன்ற type system ஒன்றைப் பயன்படுத்துங்கள்.
  • Class Components: this.refs: இதற்கு பதிலாக createRef-ஐப் பயன்படுத்துங்கள்.