How to Convert a String into an Array with React

1 replies
Last updated: Aug 31, 2021
I have a client that wants an Array of strings, but wants studio to allow them to enter "a b c d" and it makes that ["a", "b", "c", "d"]. Any clue if that is possible or where I would looks? Many thanks in advance.
Aug 31, 2021, 8:03 PM
I would try to follow custom input component and create something custom where all the logic for creating "a b c d" and saving that as array would be behind the scene but maybe there is other option which I do not know 🙂
Aug 31, 2021, 8:11 PM – build remarkable experiences at scale

Sanity is a customizable solution that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Categorized in