Created
October 7, 2021 18:06
-
-
Save sabesansathananthan/134a5234bec6b4a9b08996aa20ac6d5b to your computer and use it in GitHub Desktop.
Using Absolute Imports in ReactJs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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