2.2.2 • Published 6 years ago
react-devto v2.2.2
react-devto
A React Component that renders all yours Dev.to articles to your website.
Installation
You can install the react-devto package by using npm or yarn
npm install --save react-devto
or
yarn add react-devtoImporting
You simply need to import the Article component from react-devto package.
import Article from 'react-devto'Usage
import React from "react";
import Article from "react-devto";
function App() {
return (
<div className="App">
<Article name="username" />
</div>
);
}
export default App;Note
nameprop is required.nameprop value should be yourdev.tousername