Embed your Posts on Dev.to into your React Project.
using NPM:
npm install --save react-devdottousing YARN:
yarn add react-devdottoimport DevDotTo from "react-devdotto";
const App = () => {
return (
<DevDotTo
username="genialkartik"
coverimage={true}
darkMode={true}
hideTags={false}
numberOfPosts={5}
/>
);
};
export default App;Props of the DevDotTo component are avilable below.
| Name | Type | Default | Description |
|---|---|---|---|
| username | string | genialkartik | username can be found on dev.to platform |
| coverimage | boolean | true | if false, feature image (cover image) will be replace with description of the blog. |
| darkMode | boolean | true | toggle to false, to view blogs list in light mode. |
| hideTags | boolean | false | use to hide tags in blogs list. |
| numberOfPosts | number | get specific number of posts. |
-
Fork or Clone this Repository.
-
Navigate
cd react-devdotto. -
run
npm installto install all required dependencies. -
Make changes or fix bug.
-
Make sure to run build
npm buildbefore commiting all changes. -
Raise a pull request.
Now lemme buy you a coffee ☕.
MIT © genialkartik
