import React,{ Component } from "react"; import {MarkdownToHtml,QuillForEditor} from 'educoder'; import QestionDisplayHeader from './QestionDisplayHeader' class ShixunProgramming extends Component{ constructor(props){ super(props); this.state = { } } componentDidMount = () => { } setdata=(value)=>{ let newvalue; try { newvalue=JSON.parse(value); }catch (e) { newvalue={"ops":[{"insert":value}]}; } if(value===undefined){ newvalue={"ops":[{"insert":""}]}; } return newvalue } render() { let { description,question_title, question_id, index, shixun_identifier,hack_identifier } = this.props; const qNumber = `question_${index}`; // console.log(this.props) // console.log(this.state) // question_id: 32336 // q_position: 4 // question_title: "C语言测试排序3333333333" // question_type: 6 // question_score: "10.0" return(