Submit UI Form data on kernel to render Plot

Hello!

Could you help me and explain best way to solve this problem. It is extremely difficult for me to understand the idea of such a development and I am desperate. Please, help

The Common problem

  1. Create UI Form with inputs and other ui elements - it will be my params
  2. After filling form i would like to send the request on kernel with this params to execute some code
  3. Get response from kernel and output this data on another window.

Concrete example

  1. create 2 inputs and submit button
  2. put two numbers in two inputs, then click on button
  3. On click should be done request on kernel to create simple plot
  4. return result from kernel and render this plot on another window

I tried to solve it with react widget but do not understand how to connect with kernel correctly and then render in another window