mirror of
https://github.com/lucide-icons/lucide.git
synced 2025-12-22 16:59:21 +01:00
React package (#105)
* init new react package project * setup react package * Fix config for build * update package * Fix build * update package * fix package.json * refactor and cleanup * bumb beta version * fix regex * bump version * Add hashing * Add tests * bump version * Add peer dependecies * Add docs * Add readme link
This commit is contained in:
7
packages/lucide-react/scripts/exportTemplate.js
Normal file
7
packages/lucide-react/scripts/exportTemplate.js
Normal file
@@ -0,0 +1,7 @@
|
||||
export default ({ componentName, node }) => `
|
||||
import createReactComponent from '../createReactComponent';
|
||||
|
||||
const ${componentName} = createReactComponent('${componentName}', ${node});
|
||||
|
||||
export default ${componentName};
|
||||
`;
|
||||
Reference in New Issue
Block a user