Skip to content

Commit 0cd8a98

Browse files
committed
make the comment crystal clear closes ##264
1 parent 99042e0 commit 0cd8a98

File tree

5 files changed

+8
-10
lines changed

5 files changed

+8
-10
lines changed

challenges/data/02.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Here's how it works:
2828
1. `react-query` handles caching, deduping, re-fetching, and loading states.
2929

3030
```javascript
31-
// DO NOT MONKEY COPY/PASTE ME
31+
// READ AND ADAPT; DO NOT MONKEY COPY/PASTE ME
3232

3333
/**
3434
* Fetches data from an API endpoint and returns the JSON response.

challenges/data/03.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
- [ ] Install the library
1818

1919
```console
20-
yarn add @react-native-community/netinfo
20+
npm install --save @react-native-community/netinfo
2121
```
2222
```console
23-
npm install --save @react-native-community/netinfo
23+
yarn add @react-native-community/netinfo
2424
```
2525

2626
- [ ] Create a new file `Network.tsx` and [paste this component](https://raw.githubusercontent.com/flexbox/react-native-workshop/main/hackathon/spacecraft/src/components/exercice/Network.tsx)
@@ -30,7 +30,7 @@ You can use console.log to check if the user is connected to the internet.
3030
- [ ] Update the entry point of your application to add a new provider
3131

3232
```javascript
33-
import { NetworkProvider } from '~/contexts/Network';
33+
import { NetworkProvider } from '@/contexts/Network';
3434
```
3535

3636
`NetworkProvider` will injects the network state to children components via [React Context](https://reactjs.org/docs/context.html).

challenges/ecosystem/05.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ You need to `render` the component you want to test with `props` declaration.
5353
import { render } from "@testing-library/react-native";
5454
import React from "react";
5555

56-
import { Header } from "~/components/Header";
56+
import { Header } from "@/components/Header";
5757

5858
describe("Header", () => {
5959
it("renders correctly", () => {
@@ -73,7 +73,7 @@ The first time you can use `debug()` to print rendered component.
7373
import { render, screen } from "@testing-library/react-native";
7474
import React from "react";
7575

76-
import { Header } from "~/components/Header";
76+
import { Header } from "@/components/Header";
7777

7878
describe("Header", () => {
7979
it("renders correctly", () => {
@@ -94,7 +94,7 @@ describe("Header", () => {
9494
import { render, screen } from "@testing-library/react-native";
9595
import React from "react";
9696

97-
import { Header } from "~/components/Header";
97+
import { Header } from "@/components/Header";
9898

9999
describe("Header", () => {
100100
it("renders correctly", () => {

hackathon/spacecraft/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@
9494
"eslint": "^8.56.0",
9595
"eslint-config-expo": "~8.0.1",
9696
"eslint-config-prettier": "^9.1.0",
97-
"eslint-config-react-native-wcandillon": "^3.9.0",
9897
"eslint-plugin-perfectionist": "^3.3.0",
9998
"eslint-plugin-prettier": "^5.1.3",
10099
"eslint-plugin-query": "^0.9.1",

hackathon/spacecraft/tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
2-
"extends": "eslint-config-react-native-wcandillon/tsconfig.base",
2+
"extends": "expo/tsconfig.base",
33
"compilerOptions": {
4-
"jsx": "react-native",
54
"strict": true,
65
"baseUrl": "./",
76
"paths": {

0 commit comments

Comments
 (0)