Hello guys. I have got question about React. Whats the best practice to include react to newest version of IPS ?
I would like to use react class component as well as functions components as a custom blocks or inject them somewhere on website. Also would like to use some of external libraries like gsap. How you import those libraries into react component and then use this component inside IPS 4 ?
Normally :
import React { Component } from 'react';
import { gsap } from 'gsap';
class MyClassName extends Component {
state = {}
/* some gsap code let say its here */
render() {
return (
<div><h1>Hello</h1><p>Everybody</p></div>
)
};
ReactDOM.render(<MyClassName/>, #desired-location);
How would you implement this "test code" to your application ?
React with IPS4
in Developer Connection
Posted
Hello guys. I have got question about React. Whats the best practice to include react to newest version of IPS ?
I would like to use react class component as well as functions components as a custom blocks or inject them somewhere on website. Also would like to use some of external libraries like gsap. How you import those libraries into react component and then use this component inside IPS 4 ?
Normally :
How would you implement this "test code" to your application ?