Check out example codes for "share local storage wkwebview swift". It will help you in understanding the concepts better.

Code Example 1

let uniqueProcessPool = WKProcessPool()

let configA = WKWebViewConfiguration()
configA.processPool = uniqueProcessPool
let webViewA = init(frame: CGRect.zero, configuration: configA)

let configB = WKWebViewConfiguration()
configB.processPool = uniqueProcessPool
let webViewB = init(frame: CGRect.zero, configuration: configB)

Learn ReactJs, React Native from akashmittal.com