Babban matsalar da ke da alaฦa da adaftar enzyme amsawa 17 shine cewa yana iya haifar da amsawar da ba za ta iya juyawa ba. Wannan na iya haifar da ฦirฦirar samfuran da ba a so, wanda zai iya haifar da mummunan sakamako.
npm install --save-dev enzyme-adapter-react-17
Wannan layin lambar yana shigar da ษakin karatu na-adaftar-react-17 azaman abin dogaro na ci gaba.
Menene enzyme
Enzyme wani sunadari ne wanda ke sarrafa halayen sinadarai a cikin jiki. Ana samun Enzymes a cikin dukkan sel na jiki kuma suna da alhakin yawancin mahimman halayen kwayoyin halitta. Ayyukan Enzyme ana sarrafa su ta hanyar tsarin enzyme-inhibitor.
Bayanin React 17
React 17 shine babban sakin React, tare da sabbin abubuwa da haษakawa. Manyan abubuwan sun haษa da:
Wani sabon injin ma'ana, mai suna React Fiber, wanda ke sa React sauri da inganci.
Wani sabon tsarin gine-gine wanda ke sauฦaฦa ฦirฦirar abubuwan sake amfani da su.
Sabbin hanyoyi don mu'amala da jihohi a cikin aikace-aikacenku, gami da amfani da abubuwan da ba su da jiha da amfani da sabon ษakin karatu na react-redux.
Ingantaccen aiki da kwanciyar hankali.