Check out example codes for "how to create a window in rust lang". It will help you in understanding the concepts better.

Code Example 1

Currently complicated (21.08.2020) but you can check out winit, it might help.
		https://github.com/rust-windowing/winit
		https://crates.io/crates/winit

Learn ReactJs, React Native from akashmittal.com