to check all checkbox depend on default value from select box using react

I want to auto check all checkbox depend on default value of select box.But if uncheckd checkbox , I want to uncheck only one select box.

How can I create it?

<ul className="checkbox">
  {res.posts
    ? res.posts.map((post, index) => (
        <div key={index}>
          <Checkbox
            //checked={this.state.checked[post.title]}
            checked={this.state.checked[post.title]}
            onChange={() => this.toggleChecked(post.title)}
          >
            {post.title}
            <div>
              <Input size="large" placeholder="large size" />
            </div>
          </Checkbox>
        </div>
      ))
    : null}
</ul>