I have a controller and I have created block using createBlock method in controller and have passed a userid to it
$block = $this->_pageFactory->create();
$block->getLayout() ->createBlock('Magecomp\Crud\Block\GetUserById','magecompcrud.edituser',['data'=>['userid'=>$userid]]);
Now how can I access this userid in blcok or blcok method