Skip to content

Generic Note Taking Component

Andrew MacMurray edited this page Apr 8, 2016 · 1 revision

This component is a generic note taking component which requires the options below and will send them to the server. endPoints: '/feedback/{mentorName}', '/notes/prechat/{menteeName}', '/notes/postchat/{menteeName}

var options = {
 note: 'string',
 menteeName: this.props.menteeUsername,
 mentorName: this.props.mentorusername,
 date: 'dateString'
}

It will send an axios.post('/url', options). (note that axios is a promise based ajax request. To require, import axios from 'axios')

Clone this wiki locally