DEV Community

loading...

I need some help....

FRADAR
Hey! My name is Frasho, aka FRADAR! I am an amateur Game Developer and Web Designer. My hobbies are reading, writing and coding. I have made many games and websites.
・1 min read

It's just a simple question, and you might think i'm dumb.

I wanted to know if there is any way I could attach files to my posts. If someone could tell me how to do that, it would be of great help.

Thanks!

Discussion (4)

Collapse
kerthin profile image
Roden • Edited

You can upload them to GitHub and specify a link in your article using this format:

{% github login/repoName %}
Enter fullscreen mode Exit fullscreen mode

Instead of login, insert the GitHub username, and instead of repoName, insert the GitHub repository name.

For example:

{% github facebook/react %}
Enter fullscreen mode Exit fullscreen mode

GitHub logo facebook / react

A declarative, efficient, and flexible JavaScript library for building user interfaces.

React · GitHub license npm version CircleCI Status PRs Welcome

React is a JavaScript library for building user interfaces.

  • Declarative: React makes it painless to create interactive UIs. Design simple views for each state in your application, and React will efficiently update and render just the right components when your data changes. Declarative views make your code more predictable, simpler to understand, and easier to debug.
  • Component-Based: Build encapsulated components that manage their own state, then compose them to make complex UIs. Since component logic is written in JavaScript instead of templates, you can easily pass rich data through your app and keep state out of the DOM.
  • Learn Once, Write Anywhere: We don't make assumptions about the rest of your technology stack, so you can develop new features in React without rewriting existing code. React can also render on the server using Node and power mobile apps using React Native.

Learn how to use React in

Collapse
fradar profile image
FRADAR Author

Thanks Roden!

Collapse
terabytetiger profile image
Tyler V. (he/him)

I don't believe you can directly link to them inline - but you can host the files on GitHub and link to a repository :)

Collapse
fradar profile image
FRADAR Author

Thanks!