# Samples Each sample is a self-contained app. ## Running samples To run any sample you need to perform basic setup steps: ```sh cd samples/sample_name npm i npm run build npm run start ``` The sample will be available under `localhost:8080`. You may also use forked samples linked below. ## Available samples | Sample | Description | Sample | | ------------------------------------ | ----------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | | [basic](basic) | Basic showcase of `CKEditor` component. | [Link](https://githubbox.com/ckeditor/ckeditor4-react/tree/stable/samples/basic) | | [basic-typescript](basic-typecript) | Basic showcase of `CKEditor` component with example webpack and TypeScript integration. | [Link](https://githubbox.com/ckeditor/ckeditor4-react/tree/stable/samples/basic-typescript) | | [component](component) | Advanced showcase of `CKEditor` component. | [Link](https://githubbox.com/ckeditor/ckeditor4-react/tree/stable/samples/component) | | [component-events](component-events) | Showcase of using editor events with `CKEditor` component. | [Link](https://githubbox.com/ckeditor/ckeditor4-react/tree/stable/samples/component-events) | | [editor-url](editor-url) | Example usage of custom `editorUrl`. | [Link](https://githubbox.com/ckeditor/ckeditor4-react/tree/stable/samples/editor-url) | | [hook](hook) | Showcase of `useCKEditor` hook. | [Link](https://githubbox.com/ckeditor/ckeditor4-react/tree/stable/samples/hook) | | [hook-events](hook-events) | Showcase of using editor events with `useCKEditor` hook. | [Link](https://githubbox.com/ckeditor/ckeditor4-react/tree/stable/samples/hook-events) | | [router](router) | Example of using `CKEditor` along with `react-router`. | [Link](https://githubbox.com/ckeditor/ckeditor4-react/tree/stable/samples/router) | | [re-order](re-order) | Example of handling multiple instances of `CKEditor` component (re-ordering case). | [Link](https://githubbox.com/ckeditor/ckeditor4-react/tree/stable/samples/re-order) | | [ssr](ssr) | Showcase of using `CKEditor` with React server-side rendering. | [Link](https://githubbox.com/ckeditor/ckeditor4-react/tree/stable/samples/ssr) | | [state-lifting](state-lifting) | Editor's state is lifted higher up React tree to establish connection with a custom `textarea`. | [Link](https://githubbox.com/ckeditor/ckeditor4-react/tree/stable/samples/state-lifting) | | [umd](umd) | Showcase of how `umd` build of `ckeditor4-react` package can be used. | [Link](https://githubbox.com/ckeditor/ckeditor4-react/tree/stable/samples/umd) |