Skip to content

Instantly share code, notes, and snippets.

@fahimxyz
Last active December 17, 2019 18:09
Show Gist options
  • Save fahimxyz/359556b033c8f79f0581ec4da0f5b806 to your computer and use it in GitHub Desktop.
Save fahimxyz/359556b033c8f79f0581ec4da0f5b806 to your computer and use it in GitHub Desktop.
Divi Module JSX
// External Dependencies
import React, { Component } from 'react';
import Swiper from 'swiper';
// Internal Dependencies
import './style.css';
class Prefix_Module_Name extends Component {
static slug = 'prefix_module_name';
static css(props) {
const additionalCss = [];
return additionalCss;
}
render() {
return (
<div className="wrap">{this.props.content}</div>
);
}
}
export default Prefix_Module_Name;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment