random string react js code example
Example 1: random string js
const string_length = 10
[...Array(string_length)].map(i=>(~~(Math.random()*36)).toString(36)).join('')
Example 2: randomstring npm
npm install randomstring
const string_length = 10
[...Array(string_length)].map(i=>(~~(Math.random()*36)).toString(36)).join('')
npm install randomstring