I was able to get it to work using the below code:
ReactDOM.render(
<Composer
store={store}
directLine={window.WebChat.createDirectLine({ token })}
userID={user}
username={usern}
styleOptions={{
bubbleBorderColor: '#FF8200',
bubbleBackground: '#ffffff',
bubbleBorderRadius: 20,
bubbleFromUserBackground: '#ffffff',
bubbleFromUserBorderColor: '#FF8200',
bubbleFromUserBorderStyle: 'solid',
bubbleFromUserBorderWidth: 1,
bubbleFromUserBorderRadius: 20,
sendBoxButtonColorOnHover: '#ff9742',
suggestedActionBorderColor: '#ff7300',
suggestedActionBorderRadius: 20,
hideUploadButton: true
}}>
<BasicWebChat />
<SendMessageOnConnect />
</Composer>,
document.getElementById('webchat')
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…