IU'm using a github code example and that works perfectly with text inputs & numbers, but when I want to use checkbox inputs, the application doesn't understand the values and returns null or just on values...

Any idea why this doesn't work on `fEdit` function?

```js
import React, { Component } from "react";
// import './App.css';
class App extends Component {
  constructor(props) {
    super(props);
    this.state = {
      title: "React Simple CRUD Application",
      act: 0,
      index: "",
      datas: []
    };
  }

  componentDidMount() {
    this.refs.name.focus();
  }

  handleChange = e => {
    console.log(e.target.value);
  };

  fSubmit = e => {
    e.preventDefault();
    console.log("try");

    let datas = this.state.datas;
    let name = this.refs.name.value;
    let isenable = this.refs.isenable.value;

    if (this.state.act === 0) {
      //new
      let data = {
        name,
        isenable
      };
      datas.push(data);
      console.log(data.isenable);
    } else {
      //update
      let index = this.state.index;
      datas[index].name = name;
      datas[index].isenable = isenable;
    }

    this.setState({
      datas: datas,
      act: 0
    });

    this.refs.myForm.reset();
    this.refs.name.focus();
  };

  fRemove = i => {
    let datas = this.state.datas;
    datas.splice(i, 1);
    this.setState({
      datas: datas
    });

    this.refs.myForm.reset();
    this.refs.name.focus();
  };

  fEdit = i => {
    let data = this.state.datas[i];
    this.refs.name.value = data.name;
    this.refs.isenable.value = data.isenable;

    this.setState({
      act: 1,
      index: i
    });

    this.refs.name.focus();
  };

  render() {
    let datas = this.state.datas;
    return (
      <div className="App">
        <h2>{this.state.title}</h2>
        <form ref="myForm" className="myForm">
          <input
            type="text"
            ref="name"
            placeholder="your name"
            className="formField"
          />
          <input
            type="checkbox"
            ref="isenable"
            placeholder="your isenable"
            className="formField"
          />
          <button onClick={e => this.fSubmit(e)} className="myButton">
            submit
          </button>
        </form>
        <pre>
          {datas.map((data, i) => (
            <li key={i} className="myList">
              {data.name} - {(data.isenable || false).toString()}
              <button onClick={() => this.fRemove(i)} className="myListButton">
                remove
              </button>
              <button onClick={() => this.fEdit(i)} className="myListButton">
                edit
              </button>
            </li>
          ))}
        </pre>
      </div>
    );
  }
}

export default App;

```