There's now a bit confusing situation:
browser_only extension
switch%platform which include Server and Client branches
platform which includes js and native options
server-reason-react.browser_ppx uses -js to discard stuff for (modes melange)
We could use React namings and semantics to make things easier for folks to understand.
Maybe we could do something like this?
- Remove
platform as it's covering the same functionality as browser_only
- Rename
browser_only to just client
- Add
server to cover the platform native case
- Change
switch%platform to switch%environment
So to summarize, we'd have:
switch%environment with Server and Client branches
let%client
let%server
Wdyt?
Edited by @davesnx added server-reason-react.browser_ppx` example
There's now a bit confusing situation:
browser_onlyextensionswitch%platformwhich includeServerandClientbranchesplatformwhich includesjsandnativeoptionsserver-reason-react.browser_ppxuses-jsto discard stuff for(modes melange)We could use React namings and semantics to make things easier for folks to understand.
Maybe we could do something like this?
platformas it's covering the same functionality asbrowser_onlybrowser_onlyto justclientserverto cover theplatform nativecaseswitch%platformtoswitch%environmentSo to summarize, we'd have:
switch%environmentwithServerandClientbrancheslet%clientlet%serverWdyt?
Edited by @davesnx added server-reason-react.browser_ppx` example