opsnippets
v1.0.2
Published
```bash npm i opsnippets ```
Downloads
21
Maintainers
Readme
Installation
npm i opsnippets
Usage
import { CodeBlock} from "demo"
function App() {
const code = `
import React from 'react';
import CodeSnippet from './CodeSnippet';
const App = () => {
return (
<div>
<h1>My Code Snippet Example</h1>
<CodeSnippet />
</div>
);
};
export default App;`
return (
<>
<CodeBlock code={code} />
</>
)
}
export default App;
import { OneLineBlock} from "demo"
function App() {
return (
<>
<OneLineBlock command="npm i mongoose" />
</>
)
}
export default App;