From 81ddf9b700bc48a1f8e472209f080f9c1d9a9b09 Mon Sep 17 00:00:00 2001 From: Piotr Russ Date: Wed, 18 Nov 2020 23:26:45 +0100 Subject: rm node_modules --- node_modules/babel-preset-react/README.md | 66 ------------------------------- 1 file changed, 66 deletions(-) delete mode 100644 node_modules/babel-preset-react/README.md (limited to 'node_modules/babel-preset-react/README.md') diff --git a/node_modules/babel-preset-react/README.md b/node_modules/babel-preset-react/README.md deleted file mode 100644 index 591a595..0000000 --- a/node_modules/babel-preset-react/README.md +++ /dev/null @@ -1,66 +0,0 @@ -# babel-preset-react - -> Babel preset for all React plugins. - -This preset includes the following plugins/presets: - -- [preset-flow](https://babeljs.io/docs/plugins/preset-flow/) -- [syntax-jsx](https://babeljs.io/docs/plugins/syntax-jsx/) -- [transform-react-jsx](https://babeljs.io/docs/plugins/transform-react-jsx/) -- [transform-react-display-name](https://babeljs.io/docs/plugins/transform-react-display-name/) - -## Install - -> You can also check out the React [Getting Started page](https://facebook.github.io/react/docs/hello-world.html) - -> For more info, check out the setup page on the [cli](/docs/setup/) and the [usage](/docs/usage/cli/) docs. - -Install the CLI and this preset - -```sh -npm install --save-dev babel-cli babel-preset-react -``` - -Make a .babelrc config file with the preset - -```sh -echo '{ "presets": ["react"] }' > .babelrc -``` - -Create a file to run on - -```sh -echo '

Hello, world!

' > index.js -``` - -View the output - -```sh -./node_modules/.bin/babel index.js -``` - -## Usage - -### Via `.babelrc` (Recommended) - -**.babelrc** - -```json -{ - "presets": ["react"] -} -``` - -### Via CLI - -```sh -babel script.js --presets react -``` - -### Via Node API - -```javascript -require("babel-core").transform("code", { - presets: ["react"] -}); -``` -- cgit v1.2.3