Syntax highlighting your code on the blog and make it easy to copy with just one click
npm install samushi-clipboard-reactSyntax highlighting your code on the blog and make it easy to copy with just one click
`` `
npm i samushi-clipboard-react
`js
import React from 'react';
import ReactDOM from 'react-dom';
import {Copyclipboard} from 'samushi-clipboard-react';
const code =
const javascriptVariable = "this code need to work";
console.log(javascriptVariable);;
class App extends React.Component {
render() {
return (
How to use
!How to use$3
#### copyText: String
Highlighted code text####
language: String
Which code language is used in copyText####
showLines`: Boolean - JavaScript - javascript, js
- CSS - css
- Markup - markup, html, xml, svg, mathml, ssml, atom, rss
- PHP - php
- PHPDoc - phpdoc
- YAML - yaml, yml
- Go - go
- React JSX - jsx
- React TSX - tsx
- etc.