import { observer } from "mobx-react"; import React = require("react"); import "./KeyphraseQueryView.scss"; // tslint:disable-next-line: class-name export interface KP_Props { keyphrases: string; } @observer export class KeyphraseQueryView extends React.Component{ constructor(props: KP_Props) { super(props); console.log("FIRST KEY PHRASE: ", props.keyphrases[0]); } render() { const kps = this.props.keyphrases.toString(); const keyterms = this.props.keyphrases.split(','); return (
Select queries to send:
{keyterms.map((kp: string) => { //return (

{"-" + kp}

); return (

); })}
); } }