Ionic React seems not respecting UI = f(state).
I started an application with
ionic start ionic-tests tabs --type react
import IonCheckbox
from @ionic/react
and used with <IonCheckbox checked />
, the expected behavior while clicking is keep checked, but the checkbox was toggling...
Is it the Ionic purpose? There is any way to ensure Ionic React UI as state function?
Ionic uses stencil (web-components) and a layer (called output targets) to solve some connection problems with React. By investigating the code I saw about the @Prop
decorator with the mutability
option, but it seems doesn't work (so what is the point about the mutability option?).
manage state
render
https://ionicframework.com/docs/api/checkbox