ShakaCode | ShakaCode Blog | Rails On Maui Blog | Rails | ReactJs | JavaScript | Webpack | Productivity |

ReactJS Error Warning


#1

Hello ,

I’m new at using ReactJS and I found this warning when I run my code,

"warning.js:45
Warning: Failed form propType: You provided a checked prop to a form field without an onChange handler. This will render a read-only field. If the field should be mutable use defaultChecked. Otherwise, set either onChange or readOnly. Check the render method of Contenu. "

Can someone help me please ?


#2

@randa, did you solve this? One of the key rules of programming is to read error messages very carefully. Did you try to the fix suggested in the error message?