Как читать из файла xml, анализировать и отображать в REACT? - PullRequest
0 голосов
/ 15 апреля 2020

У меня есть следующий класс:

import React, {Component} from 'react';
import {Grid} from 'react-mdl';

class About extends Component {
    render() {

        return (
            <div>
                <Grid className="about-grid">

                    <h1><b>About </b></h1>
                    <p><h4>

                        The ability for customers to interact with a calendar that changes real-time data. </h4>
                        <h4> At present, all the data in the fitness room schedule are static. </h4>
                        <h4> Another possible development is the possibility of running the application on mobile
                            too.</h4>
                        <h4> For this you will need a separate implementation for Android and iOS systems to provide
                            support for the developed application
                            <h4> A useful and important feature that we should consider is a
                                section in which the customer is informed about the consumption
                                of the calories you make during a workout and storing this information in
                                application. </h4>

                        </h4>

                    </p>
                </Grid>

            </div>
        )
    }
}

export default About;

Как я могу записать этот текст в файл xml, из которого я затем буду выполнять синтаксический анализ и отображать текст на странице в этом файле?

...