Create React App
In order to integrate Mosaic into a create-react-app project, the following steps should be performed
Install the dependencies
yarn add @tilework/mosaic-cra-scripts @tilework/mosaicnpm install @tilework/mosaic-nextjs-scripts @tilework/mosaicUse the new scripts
{
"scripts": {
"start": "cra-scripts start",
"build": "cra-scripts build",
"test": "cra-scripts test",
"link": "cra-scripts link"
}
}Last updated