Reactjs 如何插入React';什么是历史?
我的函数是onClick的一部分,但不知道如何将contactId放入hashHistoryReactjs 如何插入React';什么是历史?,reactjs,interpolation,history,Reactjs,Interpolation,History,我的函数是onClick的一部分,但不知道如何将contactId放入hashHistory viewContact: function (contactId) { hashHistory.push('/${contactId}'); }, 使用: viewContact: function (contactId) { hashHistory.push(`/${contactId}`); },
viewContact: function (contactId) {
hashHistory.push('/${contactId}');
},
使用:
viewContact: function (contactId) {
hashHistory.push(`/${contactId}`);
},