PhoneCallResponse
のXMLデータは、生成されたHMTLには表示されません。
おそらくReactがそのコンポーネントにXMLを使用しているからです。ReactLayoutを使用してXMLデータをレンダリング
これを処理する特別な方法はありますか?
PhoneCallResponse = React.createClass({
render() {
return (
<Response>
<Say voice="alice">
Thanks for the call. Configure your number's voice U R L to change this message.
</Say>
<Pause length="1"/>
<Say voice="alice">
Let us know if we can help you in any way during your development.
</Say>
</Response>
);
}
});
FlowRouter.route('/twilio/', {
action: function() {
ReactLayout.render(Layout, {
content: <PhoneCallResponse />
});
}
});
ありがとうございます。あなたは私の例のコードと同様にdangerouslySetInnerHTMLの実例を追加できますか? – BAR
@BAR私はドキュメントが私よりも優れたリソースだと思う。しかし、このようなもの: '
うまくいかなかったので頼みます。 XMLを読み込むアプリケーションでは大文字のタグが必要であるため、小文字はここでは機能しません。 – BAR