rdev/fivepointseven

View on GitHub
components/case-study/mdx-components/Code.js

Summary

Maintainability
A
0 mins
Test Coverage
import Highlight from 'react-highlight';
import { stripIndent } from 'common-tags';

export default props => (
    <Highlight className={props.className.replace('language-', '')}>
        {stripIndent`${props.children}`}
    </Highlight>
);