Found 4 repositories(showing 4)
Macil
Utility for keeping references to multiple React elements
shaunyee
React For Beginners — ReactForBeginners.com Starter files for the React For Beginners course. Come Learn React with me! The code in this repo meant to be a reference point for anyone following along with the video course. To Start Note - one of the dependencies is currently not working with Node.js 10.3, please use version 9.11.1 (or around that, 8.x and 9.x should work fine) until then. cd into catch-of-the-day and follow along with the videos Each numbered folder in stepped-solutions contains the files for the beginning of each correspondingly numbered video, should you need them. So, if you need any code, pull the appropriate file into your catch-of-the-day folder. You are welcome to submit Pull Requests but I'd like to keep the code as similar as possible to the course content. Code Use You are welcome to use this code in your own applications. If you would like to use it for training purposes, please shoot me a message first to make sure it's okay. Frequently Asked Questions ❓ I'm getting error "Pre-built binaries not found for grpc@1.10.1 and node@10.3.0" and "Tried to download(403): https://storage.googleapis.com....." One of the dependencies is currently not working with Node.js 10.3, please use version 9.11.1 (or around that, 8.x and 9.x should work fine) until then. Don't sweat this as it's just build tooling and isn't related to the version of react you are using. ❓ I tried installing the Babel syntax highlighter but it didn't work! There are a few possible options: If you are on Sublime Text 2, you should Upgrade to Sublime Text 3. Some users have reported restarting works You can try the JavaScript Next syntax highlighter instead ❓ I can't set Babel as the default syntax highlighter! Make sure you are in a file with the extension of .js before you do this step - you can't set the default for a file without having a file open! ❓ I can't see the React tab in my dev tools Restart your dev tools or your chrome browser entirely. They will only show up when you are viewing a React app - so make sure you test it on Facebook or another website that is running React. It won't work on your empty main.js file until you import React from 'react'. ❓ npm start doesn't update the app on file save, or doesn't run correctly. There may be a few different causes for this: Webpack currently can't handle folder/file names that contain parentheses. Webpack also has problems running inside folders for Dropbox/Google Drive type services. Git is recommended for keeping your files in sync across multiple computers. Changes In the 2018 RE-Record In March 2018 I re-recorded this course. Here are the things that I've updated. Upgrade to React Router 4 Final API Use React 16.3 Move to external PropTypes Package Use React's new Refs API, remove function refs Remove all use of constructors and super() - use class properties instead Better explain binding, use of this and component instances Moved from React-addons-css-transition-group to react-transition-group and upgraded from 1.x to 2.x Use official Firebase package for Auth as re-base is now only for data binding Move promise based code to async/await Show how to return multiple elements with React.Fragment htaccess Here is the .htaccess file we use in the apache deployment video RewriteBase / RewriteRule ^index\.html$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.html [L]
shaeroston
aliases: - &restore-yarn-cache key: v2-yarn-cache-{{ checksum "yarn.lock" }} - &save-yarn-cache paths: - ~/.yarn/berry/cache key: v2-yarn-cache-{{ checksum "yarn.lock" }} - &artifact_babel path: ~/babel/packages/babel-standalone/babel.js - &artifact_babel_min path: ~/babel/packages/babel-standalone/babel.min.js - &test262_workdir working_directory: ~/babel/babel-test262-runner - &artifact_test262_tap path: ~/test262.tap - &artifact_test262_xunit path: ~/test-results - &artifact_test262_diff_tap path: ~/diff.tap executors: node-executor: docker: - image: cimg/node:current working_directory: ~/babel # e2e-vue-cli test requires chromium node-browsers-executor: docker: - image: cimg/node:current-browsers working_directory: ~/babel # e2e-jest test requires python node-python-executor: docker: - image: cimg/python:3.9-node working_directory: ~/babel jobs: build-standalone: executor: node-executor steps: - checkout - restore_cache: *restore-yarn-cache # Builds babel-standalone with the regular Babel config # test-ci-coverage doesn't test babel-standalone, as trying to gather coverage - run: IS_PUBLISH=true make -j build-standalone-ci # data for a JS file that's several megabytes large is bound to fail. Here, # we just run the babel-standalone test separately. - run: yarn jest "\-standalone/test" - store_artifacts: *artifact_babel - store_artifacts: *artifact_babel_min - save_cache: *save-yarn-cache test262: executor: node-executor steps: - checkout - run: name: Sync with latest main branch (only on PRs) command: | if [ -n "$CIRCLE_PULL_REQUEST" ] then # $CIRCLE_PR_NUMBER is not always defined: # https://support.circleci.com/hc/en-us/articles/360047521451-Why-is-CIRCLE-PR-NUMBER-empty- git fetch origin refs/pull/${CIRCLE_PULL_REQUEST##*/}/merge git checkout -qf FETCH_HEAD fi - restore_cache: *restore-yarn-cache - run: name: Build Babel command: BABEL_ENV=test make bootstrap - run: name: Setup Test Runner command: | git clone --depth=1 --recurse-submodules https://github.com/babel/babel-test262-runner cd babel-test262-runner npm ci npm i tap-mocha-reporter --save-dev node lib/download-node - run: name: Download main branch Test262 artifact command: node lib/download-main-artifact ~/test262-main.tap <<: *test262_workdir - run: name: Run Test262 command: BABEL_PATH=.. node lib/run-tests I_AM_SURE | tee ~/test262.tap <<: *test262_workdir - store_artifacts: *artifact_test262_tap - run: name: Output Test262 results command: | cat ~/test262.tap | $(npm bin)/tap-mocha-reporter spec || true <<: *test262_workdir - run: name: Compare previous main branch & current job results command: | mkdir -p ~/test-results/test262 node lib/compare-results ~/test262-main.tap ~/test262.tap | tee ~/diff.tap <<: *test262_workdir - store_artifacts: *artifact_test262_diff_tap - run: name: Output comparison results and report to CircleCI command: | mkdir -p ~/test-results/test262 cat ~/diff.tap | $(npm bin)/tap-merge | $(npm bin)/tap-mocha-reporter xunit | tee ~/test-results/test262/results.xml <<: *test262_workdir - store_test_results: *artifact_test262_xunit - save_cache: *save-yarn-cache publish-verdaccio: executor: node-executor steps: - checkout - restore_cache: *restore-yarn-cache - run: ./scripts/integration-tests/publish-local.sh - persist_to_workspace: root: /tmp/verdaccio-workspace paths: - storage - htpasswd - save_cache: *save-yarn-cache publish-verdaccio-babel-8-breaking: executor: node-executor steps: - checkout - restore_cache: *restore-yarn-cache - run: BABEL_8_BREAKING=true ./scripts/integration-tests/publish-local.sh - persist_to_workspace: root: /tmp/verdaccio-workspace paths: - storage - htpasswd - save_cache: *save-yarn-cache e2e-babel: executor: node-executor steps: - checkout - attach_workspace: at: /tmp/verdaccio-workspace - run: ./scripts/integration-tests/e2e-babel.sh e2e-babel-breaking: executor: node-executor steps: - checkout - attach_workspace: at: /tmp/verdaccio-workspace - run: BABEL_8_BREAKING=true ./scripts/integration-tests/e2e-babel.sh e2e-babel-old-version: executor: node-executor steps: - checkout - attach_workspace: at: /tmp/verdaccio-workspace - run: ./scripts/integration-tests/e2e-babel-old-version.sh e2e-create-react-app: executor: node-executor steps: - checkout - attach_workspace: at: /tmp/verdaccio-workspace - run: ./scripts/integration-tests/e2e-create-react-app.sh e2e-vue-cli: executor: node-browsers-executor steps: - checkout - attach_workspace: at: /tmp/verdaccio-workspace - run: # vue-cli uses puppeteer, and it depends on the libXss.so.1 shared library name: Install Headless Chrome dependencies command: sudo apt-get install -yq libxss1 - run: ./scripts/integration-tests/e2e-vue-cli.sh e2e-jest: executor: node-python-executor steps: - checkout - attach_workspace: at: /tmp/verdaccio-workspace - run: ./scripts/integration-tests/e2e-jest.sh e2e-jest-breaking: executor: node-python-executor steps: - checkout - attach_workspace: at: /tmp/verdaccio-workspace - run: BABEL_8_BREAKING=true ./scripts/integration-tests/e2e-jest.sh workflows: version: 2 build-standalone: jobs: - build-standalone test262: jobs: - test262: filters: branches: only: - main - next-8-dev - next-8-rebased context: babel-test262 test262-pr: jobs: - approve-test262-run: type: approval filters: branches: ignore: - main - master - next-8-dev - next-8-rebased - test262: requires: - approve-test262-run filters: branches: ignore: - main - master - next-8-dev - next-8-rebased context: babel-test262 e2e: jobs: - publish-verdaccio - e2e-babel: requires: - publish-verdaccio - e2e-babel-old-version: requires: - publish-verdaccio - e2e-create-react-app: requires: - publish-verdaccio - e2e-vue-cli: requires: - publish-verdaccio - e2e-jest: requires: - publish-verdaccio e2e-breaking: jobs: - publish-verdaccio-babel-8-breaking: filters: branches: only: [main, next-8-dev, next-8-rebased] - e2e-babel-breaking: requires: - publish-verdaccio-babel-8-breaking - e2e-create-react-app: requires: - publish-verdaccio-babel-8-breaking - e2e-vue-cli: requires: - publish-verdaccio-babel-8-breaking - e2e-jest-breaking: requires: - publish-verdaccio-babel-8-breaking e2e-breaking-pr: jobs: - approve-e2e-breaking-run: type: approval filters: branches: ignore: [main, next-8-dev, next-8-rebased] - publish-verdaccio-babel-8-breaking: requires: - approve-e2e-breaking-run - e2e-babel-breaking: requires: - publish-verdaccio-babel-8-breaking - e2e-create-react-app: requires: - publish-verdaccio-babel-8-breaking - e2e-vue-cli: requires: - publish-verdaccio-babel-8-breaking - e2e-jest-breaking: requires: - publish-verdaccio-babel-8-breaking
DawidMura
This Project contains frontend and backend area. I used to React App( hooks, ref ), Node.js and CSS. This simple app can add new todo, edit todo, delete todo and more. Important is, that all we can save by mongoDB (one of the best database ever).
All 4 repositories loaded