How can I pass dynamic component in a “renderToString” to convert into string
问题 This is what I mean by the dynamic component (the component which is getting data from the rest API) import React from "react"; import axios from "axios"; class WeatherData extends React.Component { state = { data: null, latitude: "19.970324", longitude: "79.303360", weatherData: {}, _apiKey: "", //NOTE: In my code I have pass the Id here. city: "chandrapur,in" }; componentDidMount() { const { latitude, longitude, _apiKey, city } = this.state; axios .get( `https://cors-anywhere.herokuapp.com