React dynamic brush elements

for example, there is a string like: watch? Minute course, send? Integral

I need to change the ? in the string to the input input box and bind the change event to the input box.

The number of ? in

string is not fixed

Sep.30,2021

convert the string to an array first, and then loop

var items = str.split('?').reduce((state, item, index) => {
  if (index) {
    state.push(<input onChange={changeHandler} />)
  }
  state.push(item)
  return state
}, [])
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-7b8e6f-159a6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-7b8e6f-159a6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?