Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class MyComponent extends Component {
- const jsScript = `
- // ES6 code like arrow functions, spread operator, destructuring etc
- // It mainly uses jQuery to get the elements and work on them
- `
- render() {
- return (
- <div>
- lots of content which will need progressive enhancement
- <script dangerouslySetInnerHTML={{ __html: jsScript }} />
- </div>
- )
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement