Closed bogas04 closed 7 years ago
Initial method of implementing:
line .split(' ') .map((akhar, index) => ( index % 2 == 0 ? <span style={{ color: 'orange' }}>{akhar}</span> : akhar )) .join('');
I think this will still have to take care of || and other symbols. Also, CSS way of implementing this can be used for cleaner DOM.
Initial method of implementing:
I think this will still have to take care of || and other symbols. Also, CSS way of implementing this can be used for cleaner DOM.