DEV Community

Discussion on: Downloading and Displaying a file in React Native

Collapse
amankumarsingh01 profile image
Aman Kumar Singh

Hello, thanks for sharing. 👍

If you would like to add syntax coloring to your code:

Markdown - how to make blocks of React code (syntax highlighting - github, dev.to)

I personally struggeled with this.

At the beginning of the src code line after 3 x the grave accent sign, we need to add jsx.

This is React code sample:

import React from "react";

const App = () => {
  return (
    <div>
      <h1>My App</h1>
    </div>
  );
};

export default App;
Enter fullscreen mode Exit fullscreen mode
Collapse
johannawad profile image
Johanna Author

Thanks for your suggestion. It will definitely improve the readability of the code!