Skip to content

Instantly share code, notes, and snippets.

@sabesansathananthan
Created October 7, 2021 18:06
Show Gist options
  • Save sabesansathananthan/134a5234bec6b4a9b08996aa20ac6d5b to your computer and use it in GitHub Desktop.
Save sabesansathananthan/134a5234bec6b4a9b08996aa20ac6d5b to your computer and use it in GitHub Desktop.
Using Absolute Imports in ReactJs
import React from 'react';
import { LINKS, STRINGS } from 'utils/constants';
import Button from 'components/Button/Button';
import styles from './App.module.css';
function App() {
return (
<div className={styles.App}>
<Button>
{STRINGS.HELLO}
</Button>
<a href={LINKS.HELP}>Learn more</a>
</div>
);
}
export default App;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment