/** * Traverses all `props.children` to obtain their combined textual content. * * This function does not add spaces for readability: * `
Hello world!
` produces `Hello world!` as expected, * but `Hello
world
` returns `Helloworld`, similar to * the behavior of https://mdn.io/Node/textContent. * * @param {ReactElement} elem - The React element from which to extract textual content. Can be a React element, string, number, or boolean. * @param {string} [childContentSeparator=""] - A string used to separate the child values. Defaults to an empty string. * * @returns {string} A combined string containing the textual content of the provided React element's children. * * @example * const element = ( *Hello world!
*How are you?
*