Created
October 7, 2021 18:03
-
-
Save sabesansathananthan/aae36d47ae2523cc8419df3051a72895 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 Button from '../../Button/Button'; | |
import { LINKS, STRINGS } from '../../../utils/constants'; | |
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