To get the checked state of your checkbox the path would be:
this.refs.complete.state.checked
The alternative is to get it from the event passed into the handleChange
method:
event.target.checked
More Related Contents:
- jQuery difference between change and click event of checkbox
- Make a column be a checkbox
- How to set default Checked in checkbox ReactJS?
- Reset checkboxes to false
- stop dragging after a limit has reached
- Passing object as props to jsx
- create-react-app: how to use https instead of http?
- Disable ESLint that create-react-app provides
- Equivalent to componentDidUpdate using React hooks
- Webpack & Typescript image import
- reactjs event listener beforeunload added but not removed
- Passing values through React-Router v4
- How to parse html to React component?
- How to import a .txt file from my source?
- React – Dynamically Import Components
- How to properly use useHistory () from react-router-dom?
- How to create dynamic refs in functional component- Using useRef Hook
- How to listen to localstorage value changes in react?
- How to combine and use multiple Next.js plugins
- React Error: “SharedArrayBuffer is not defined” in Firefox
- How to get SCSS variables into react
- MVC 4 – Many-to-Many relation and checkboxes
- passing data from child to parent component – react – via callback function
- Why my render method is react called twice
- Put A Warning If Page Refresh in ReactJS
- FastAPI is not returning cookies to React frontend
- Next.js app folder: is there some “entry point”? A direct replacement for _app.tsx?
- State not getting updated when calling the related setState in React
- ‘React’ was used before it was defined
- Using styled-components with props and TypeScript