# Recipe Book > Building blocks for recipe sites: scale servings, convert between metric and US units, and render recipes with React components that ship no CSS. ```sh npm i @recipe-book/react ``` An app without React installs `@recipe-book/core` instead. [Read the quickstart](https://recipe-book.siraj.page/quickstart.md) [Open the playground](https://recipe-book.siraj.page/playground/) **Maple granola** Servings: 4 Measurement system: US - 2 cups rolled oats - ½ cup chopped almonds - ¼ cup maple syrup - 2 tbsp olive oil - ½ tsp salt 1. Toss everything together, spread it on a sheet pan, and bake at 325 °F for 25 minutes, stirring once. Serve with ½ cup of milk per bowl. [Try the live demo](https://recipe-book.siraj.page/#try-it) The links below go to each page as Markdown, which is at the page's URL with `.md` in place of the trailing slash, such as https://recipe-book.siraj.page/quickstart.md for https://recipe-book.siraj.page/quickstart/, and at https://recipe-book.siraj.page/index.md for the home page. [llms-full.txt](https://recipe-book.siraj.page/llms-full.txt) has every page's Markdown in one file. Playground has no Markdown version, so its link goes to the page. ## Get started - [Introduction](https://recipe-book.siraj.page/introduction.md): What Recipe Book is, what @recipe-book/core and @recipe-book/react each do, require, and weigh, and how to use core without React. - [Quickstart](https://recipe-book.siraj.page/quickstart.md): Install Recipe Book, parse a recipe, and render it in your React app with and the parts. - [Playground](https://recipe-book.siraj.page/playground/): Paste a recipe page’s HTML, schema.org Recipe JSON-LD, or recipe input to see how Recipe Book reads and renders it. ## Guides - [Author recipes](https://recipe-book.siraj.page/guides/author-recipes.md): Write recipe input with quantities, equivalents, ingredient lines, regional decimals and units, sections, times, notes, equipment, links, nutrition, and IDs, and catch mistakes as you type. - [Scale a recipe](https://recipe-book.siraj.page/guides/scale-a-recipe.md): Scale quantities, resolve a recipe in metric or US units to a number of servings or by a multiplier, and display its ingredients, servings, and yield. - [Convert units](https://recipe-book.siraj.page/guides/convert-units.md): Convert quantities between units and measurement systems, show cups as grams, check units from user data, and convert oven temperatures. - [Display quantities](https://recipe-book.siraj.page/guides/display-quantities.md): Format quantities, ingredient lines, oven temperatures, and cooking times as text, and mark up a quantity's parts. - [Validate recipes](https://recipe-book.siraj.page/guides/validate-recipes.md): Check recipe input from a CMS, an API, or a form at runtime, and report every issue with its path. - [Import recipes](https://recipe-book.siraj.page/guides/import-recipes.md): Read the schema.org JSON-LD that recipe sites publish into a recipe, check what was left out, read regional decimals and units, store the result, and resolve its ingredient links. - [Render a recipe in React](https://recipe-book.siraj.page/guides/render-a-recipe-in-react.md): Parse a recipe in a Server Component and render it with , or parse recipe input in the browser. - [Server-render a recipe](https://recipe-book.siraj.page/guides/render-a-recipe-on-the-server.md): Parse a recipe on the server in Next.js, React Router, Astro, or your own server, render it with , see what hydration changes, and save the reader's choices with a form action. - [Style a recipe](https://recipe-book.siraj.page/guides/style-a-recipe.md): Style the React parts with className, style, and the data attributes they render, support dark mode and print, and find every attribute's values. - [Make a recipe accessible](https://recipe-book.siraj.page/guides/make-a-recipe-accessible.md): See what the React parts give screen reader and keyboard users, then translate their labels, name controls, set heading levels, and choose alt text. - [Localize recipes](https://recipe-book.siraj.page/guides/localize-recipes.md): Write metric units, cooking times, and oven temperatures in another language with a label pack, use it for most of the React parts' text, and make your own. ## Core reference - [Parsing](https://recipe-book.siraj.page/reference/core/parsing.md): Reference for the exports in @recipe-book/core that turn recipe input into a recipe, a quantity, or an ingredient line, and report the issues they find. - [Resolving](https://recipe-book.siraj.page/reference/core/resolving.md): Reference for resolveRecipe, readRecipeView, resolveIngredient, and scaleQuantity, which scale quantities, express a recipe in one measurement system, and read servings and a system from a link or storage. - [Units](https://recipe-book.siraj.page/reference/core/units.md): Reference for the unit registry and the @recipe-book/core functions that look up units, convert quantities and temperatures, and find temperatures, durations, and quantities in step text. - [Formatting](https://recipe-book.siraj.page/reference/core/formatting.md): Reference for the @recipe-book/core functions that format quantities, ingredient lines, servings, yields, temperatures, and durations as text. - [schema.org JSON-LD](https://recipe-book.siraj.page/reference/core/schema-org.md): Reference for findRecipeJsonLd, fromJsonLd, and toJsonLd, which read recipes from schema.org Recipe JSON-LD and write them as JSON-LD. - [Label packs](https://recipe-book.siraj.page/reference/core/labels.md): Reference for the label packs in @recipe-book/core/labels, which write units, durations, temperatures, and sizes in German, French, Dutch, Swedish, Danish, Norwegian, Italian, or Spanish. - [Errors](https://recipe-book.siraj.page/reference/core/errors.md): Reference for RecipeBookError, RecipeValidationError, isRecipeBookError, isRecipeValidationError, RecipeIssue, and the error and issue codes. - [Types](https://recipe-book.siraj.page/reference/core/types.md): Reference for the recipe model that parseRecipe returns, the recipe input types you write, and the label pack type. ## React reference - [Root](https://recipe-book.siraj.page/reference/react/root.md): Reference for , which holds a recipe's servings and measurement system for the parts and hooks inside it. - [Image](https://recipe-book.siraj.page/reference/react/image.md): Reference for , which renders the recipe's image as an img element or with your own image component. - [Servings](https://recipe-book.siraj.page/reference/react/servings.md): Reference for and , which change a recipe's servings, and and , which show them as text. - [System toggle](https://recipe-book.siraj.page/reference/react/system-toggle.md): Reference for and , a radio group that switches a recipe between metric and US units. - [Ingredients](https://recipe-book.siraj.page/reference/react/ingredients.md): Reference for , , , and its sub-parts, which render scaled, converted ingredients. - [Steps](https://recipe-book.siraj.page/reference/react/steps.md): Reference for , , , , , and , which render a recipe's steps. - [Checklist](https://recipe-book.siraj.page/reference/react/checklist.md): Reference for , , , useChecklist, and useChecklistState, which let readers check off ingredients and steps. - [Cook mode](https://recipe-book.siraj.page/reference/react/cook-mode.md): Reference for , a switch that asks the browser to keep the screen on while someone cooks, in browsers with the Screen Wake Lock API. - [Times](https://recipe-book.siraj.page/reference/react/times.md): Reference for , which renders a recipe's prep, cook, custom, and total times as a description list. - [Equipment](https://recipe-book.siraj.page/reference/react/equipment.md): Reference for , which renders the tools a recipe needs as a list, linking each one that has a URL to its product page. - [Label packs](https://recipe-book.siraj.page/reference/react/labels.md): Reference for the label packs in @recipe-book/react/labels, which write metric units and most of the parts' controls in German, French, Dutch, Swedish, Danish, Norwegian, Italian, or Spanish. - [Notes](https://recipe-book.siraj.page/reference/react/notes.md): Reference for , which renders a recipe's notes, each with its title, if it has one, as a heading. - [Nutrition](https://recipe-book.siraj.page/reference/react/nutrition.md): Reference for , which renders a recipe's nutrition facts per serving as a description list. - [JSON-LD](https://recipe-book.siraj.page/reference/react/json-ld.md): Reference for , which writes the recipe as schema.org Recipe JSON-LD for search engines' recipe results. - [Hooks](https://recipe-book.siraj.page/reference/react/hooks.md): Reference for useRecipe, useRecipeState, and useFormatIngredient, which give your own components the state and formatting that parts use. - [Provider](https://recipe-book.siraj.page/reference/react/provider.md): Reference for , which sets the default locale, labels, and starting measurement system for every Root inside it. ## Errors - [Error codes](https://recipe-book.siraj.page/errors.md): Every code a RecipeBookError can carry and what it means, every issue code and its fix, and the warnings React parts log in development. - [incompatible_units](https://recipe-book.siraj.page/errors/incompatible_units.md): convert received two units it can't convert between, such as cups and grams, or a count with no fixed size, such as a clove or a quantity without a unit. - [invalid_argument](https://recipe-book.siraj.page/errors/invalid_argument.md): A function, part, or hook received an argument it can't use, such as an amount of 0, a range whose minimum is above its maximum, an unknown system, or unparsed recipe input. - [invalid_ingredient](https://recipe-book.siraj.page/errors/invalid_ingredient.md): parseIngredientLine received blank text or a value that isn't text, the only input it fails on. - [invalid_quantity](https://recipe-book.siraj.page/errors/invalid_quantity.md): parseQuantity found a problem in quantity text, such as '2 cupz', and the error's issue says what it is. - [invalid_recipe](https://recipe-book.siraj.page/errors/invalid_recipe.md): parseRecipe or fromJsonLd found errors in a recipe, and the error's issues say where each one is and how to fix it. - [missing_parent](https://recipe-book.siraj.page/errors/missing_parent.md): A part or a hook such as useRecipe() ran outside the component it belongs in, like , or two copies of @recipe-book/react loaded. - [unknown_unit](https://recipe-book.siraj.page/errors/unknown_unit.md): A function received a unit that isn't a unit ID, such as 'cups', or recipe input or quantity text has a unit Recipe Book doesn't recognize, such as 'cupz'.