Create check component with callback

An example of check component with specified callback, which logs current state (checked or unchecked).