Meta tags:
description= Note: this feature is available with react-scripts@3.3.0 and higher.;
Headings (most frequently used words):
template, custom, templates, the, finding, building, testing, folder, json, file,
Text of the page (most frequently used words):
#template (38), the (20), app (14), react (12), you (11), custom (10), templates (10), create (10), name (10), cra (9), file (8), this (8), for (8), your (8), json (6), and (6), can (5), scripts (5), npm (5), any (5), serve (5), package (5), building (4), with (4), copy (4), scope (4), github (3), folder (3), testing (3), are (3), readme (3), run (3), values (3), will (3), dependencies (3), jsx (3), a11y (3), build (3), that (3), gitignore (3), index (3), community (2), started (2), docs (2), finding (2), use (2), decorators (2), deployment (2), page (2), always (2), projects (2), yarn (2), add (2), defaults (2), keys (2), plugin (2), key (2), provide (2), want (2), added (2), new (2), project (2), configuration (2), feature (2), more (2), only (2), supported (2), files (2), here (2), must (2), have (2), directory (2), npx (2), path (2), html (2), from (2), however (2), advanced (2), copyright, 2025, facebook, inc, social, contributor, covenant, twitter, discussions, stack, overflow, learn, get, next, previous, last, updated, dan, abramov, 2021, edit, convenience, replace, well, when, initialized, merged, other, used, replacing, matching, plugins, recommended, extends, eslintconfig, eslint, below, example, lets, such, relies, options, over, time, now, whatever, but, least, specified, above, copied, user, installs, during, process, renamed, test, locally, pass, source, using, prefix, tsx, src, public, created, following, structure, interested, first, take, look, how, built, find, many, great, searching, typescript, ship, two, default, scoped, also, under, which, installed, via, respectively, notice, named, format, need, creation, command, enable, select, while, still, retaining, all, features, note, available, higher, support, alternatives, ejecting, pre, rendering, static, usage, back, end, integration, styles, assets, development, getting, welcome, search, help, deprecated, read, skip, main, content,
Text of the page (random words):
custom templates create react app skip to main content create react app is deprecated read more here create react app docs help github search k welcome getting started development styles and assets building your app testing back end integration deployment advanced usage custom templates can i use decorators pre rendering static html advanced configuration alternatives to ejecting support on this page custom templates note this feature is available with react scripts 3 3 0 and higher custom templates enable you to select a template to create your project from while still retaining all of the features of create react app you ll notice that custom templates are always named in the format cra template template name however you only need to provide the template name to the creation command scoped templates are also supported under the name scope name cra template or scope name cra template template name which can be installed via scope and scope template name respectively npx create react app my app template template name copy finding custom templates we ship two templates by default cra template cra template typescript however you can find many great community templates by searching for cra template on npm building a template if you re interested in building a custom template first take a look at how we ve built cra template a template must have the following structure cra template template name readme md for npm template json package json template readme md for projects created from this template gitignore public index html src index js or index tsx copy testing a template to test a template locally pass the file path to the directory of your template source using the file prefix npx create react app my app template file path to your template cra template template name copy the template folder this folder is copied to the user s app directory as create react app installs during this process the file gitignore is renamed to gitignore you can add whatever files you want in here but you must have at least the files specified above the template json file this is the configuration file for your template as this is a new feature more options will be added over time for now only a package key is supported the package key lets you provide any keys values that you want added to the new project s package json such as dependencies and any custom scripts that your template relies on below is an example template json file package dependencies eslint plugin jsx a11y 6 2 3 serve 11 2 0 scripts serve serve s build build and serve npm run build npm run serve eslintconfig extends react app plugin jsx a11y recommended plugins jsx a11y copy any values you add for dependencies and scripts will be merged with the create react app defaults values for any other keys will be used as is replacing any matching create react app defaults for convenience we always replace npm run with yarn in your custom scripts as well as in your readme when projects are initialized with yarn edit this page last updated on 7 7 2021 by dan abramov previous deployment next can i use decorators finding custom templates building a template testing a template the template folder the template json file docs get started learn react community stack overflow github discussions twitter contributor covenant social github copyright 2025 facebook inc
|