We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec274df commit d36af4dCopy full SHA for d36af4d
examples/highlight.js
@@ -1,7 +1,6 @@
1
-'use strict';
2
-const React = require('react');
3
-const {render} = require('ink');
4
-const SyntaxHighlight = require('../build').default;
+import React from 'react';
+import {render} from 'ink';
+import SyntaxHighlight from '../build';
5
6
const Syntax = () => {
7
return (
examples/index.js
@@ -1,2 +1 @@
require('import-jsx')('./highlight');
0 commit comments