wix/Detox

Add JS/TS or CJS/ESM examples to the website

noomorph opened this issue ยท 0 comments

Describe your idea

The website often operates with CommonJS examples, and since the CJS require imports are falling out of the fashion (well, actually... already did ๐Ÿ˜† ), I guess it is highly advisable to make Detox website more informative and suggest some some sort of tabs, e.g.:

JS (or CommonJS):

const jestExpect = require('expect').default;

TS (or ES Modules):

import jestExpect from 'expect';

I'm unsure which dichotomy will be better for now, but the end-goal is to suggest both require and import ways in the examples.