Wherever you are initialising the FontAwesome library:
import { library } from '@fortawesome/fontawesome-svg-core';
import faTheName from 'custom-icon';
...
library.add(faTheName);
Wherever you are using the icon:
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
...
<FontAwesomeIcon icon="the-name" />
The following may help with the custom icon presenting better when used with other FA icons. After performing any of these things, re-export to get the SVG path to update your definition.
If the SVG turns out too small despite the correct dimensions being set, might have whitespace.
Use Inkscape to scale the contents to the max width of the canvas.
Note: This may create a transform attribute. See Remove transform attribute to get rid of it.
Use Inkscape.
Select the contents. Under Object -> Align and Distribute, select Relative to Page and
vertically centre the content.
If there is a transform attribute, pick up the Apply Transforms plugin and install it.
Select the contents. Click on Extensions -> Modify Path -> Apply Transforms.
Full instructions here: http://blog.greggant.com/posts/2018/10/03/inkscape-extensions-on-mac-remove-transforms-in-svg.html