groceristar / react-only-intern-23 Goto Github PK
View Code? Open in Web Editor NEWHome Page: https://cool-features.netlify.com/
License: GNU General Public License v3.0
Home Page: https://cool-features.netlify.com/
License: GNU General Public License v3.0
What we can do in order to make our components more readable and less complex coded?
Link to the first part of tutorial
https://medium.com/quick-code/lets-learn-react-chapter-1-setting-up-environment-e9505b6644
Download this template and convert it into react application
https://codyhouse.co/demo/schedule-template/index.html
npm install @groceristar/groceristar-fetch
We cannot move forward, while we didn't have static data, related to recipes in our module
https://medium.com/quick-code/lets-learn-react-chapter-1-setting-up-environment-e9505b6644
after reading each chapter you need to push your code updates here and also give me a short resume about what exactly did you. it'll needed for better understanding your progress
Compiled with warnings.
./src/component/WorkSchedule/DayModel.js
Line 4: 'ListGroup' is defined but never used no-unused-vars
Line 48: Expected an assignment or function call and instead saw an expression no-unused-expressions
Line 49: Expected an assignment or function call and instead saw an expression no-unused-expressions
Line 56: Expected '===' and instead saw '==' eqeqeq
./src/App.js
Line 6: 'ColumnRender' is defined but never used no-unused-vars
./src/component/WorkSchedule/WorkSched.js
Line 6: 'weekdayName' is defined but never used no-unused-vars
What do you think if we'll move a Meal Card into a separated component?
Can we use arrays from data
folder?
Please check this code repo. https://github.com/atherdon/ph-st
It's a UI Kit, that was created by my friends, and they shared with me a free sample to try.
basic idea is to convert that HTML code into react page.
You should provide your step-by-step plan, where you'll explain
for fast start we can use a template from build
folder
But also check their src structure and tell me - will you be able to setup a local version of development version where we'll be able to alter scss?
prev code located here: https://github.com/atherdon/ph-st
compiled HTML are here: https://github.com/atherdon/ph-st/tree/master/build
checklist
as it's a big task, please tell me your step by step plan.
it'll be cool to go from basic stuff first, like:
So I can review it, and make some corrections.
in order to be able to see the result online - we must push repository code on https://www.netlify.com/
when you create an account here and try to move this repo - you'll need to get a grant access from me.
Do it - I'll receive a notification and I'll approve it.
Can stuff, stored at Meal plan Form be a set with separated components, that contain related state events?
Will this reduce size of this file, right?
move that data into separated array too
https://medium.com/quick-code/lets-learn-react-chapter-6-updating-component-state-80fcc7c01d24
https://medium.com/quick-code/lets-learn-react-chapter-7-component-life-cycle-6aaa815747db
I didn't like long lines like that, please update the format(just split it into few lines)
Btw, what do you think about adding a separated component for Calendar Header?
I think it should be rewritten. Tell me how do you think it can be done by your opinion
Link to the first part of a tutorial on the next line
https://medium.com/quick-code/lets-learn-react-chapter-2-what-the-hell-is-jsx-and-where-can-i-buy-it-5303a7db5117
if(item%50 === 0) {
if(topToDown[index+1] === buffer[i].start) {
return (
<ListGroupItem style={fillerBlockHeight} key={item}></ListGroupItem>
);
}
return (
<ListGroupItem style={defaultBlockHeight} key={item}></ListGroupItem>
);
}
as you can see - we have a similar return, just a different an attribute.
i think we can improve it and return this Tag only once, but in different conditions
{this.rendererFunc(data[this.props.index])}
does we're really need to pass that data in render()?
for(var traverse = 0; traverse <= 900; traverse +=25) {
topToDown.push(traverse);
if(buffer[i].start === traverse ) {
traverse += buffer[i].height - 25;
if(i < buffer.length - 1){
i++;
}
}
}
Use underscore for simplifying code here
This methods looks a bit similar, tell me how do you think we can improve it
Check how this calendar adapt to a different screen sizes and tell what do you think we should do.
will put information about it later
/calendar
- will display our designed calendarhttps://www.npmjs.com/package/moment
I'm not familiar how it works, but i know that all calendar plugins use it.
https://momentjs.com/
https://momentjs.com/docs/#/parsing/
Check the Testing section of this article: https://medium.com/groceristar/things-that-should-read-and-use-javascript-intern-at-groceristar-april-18-collection-bd6541e9ae28
https://medium.com/quick-code/lets-learn-react-chapter-5-component-state-f9eccc8df2cf
https://reactjs.org/docs/state-and-lifecycle.html
as this chapter is more about understanding details - there no a coding test section
what do you think, after reading this chapter - is state will replicate
partially a work of jquery things? i mean will state reduce amount of
jquery work?
Can we use array from data
folder?
maybe move it into separated file?
Put them also in one folder.
like Modal/Abs/Abs.js
https://github.com/atherdon/bebe-grocery/tree/master/src
and tell me the difference and how we can improve our project structure.
You can also read section Structure of this article: https://medium.com/groceristar/things-that-should-read-learn-use-js-intern-at-groceristar-may-18-collection-48dc4e8f9c33
i think if you create a variable in the beginning - related to this.state.month - it'll be more beautiful
https://medium.com/quick-code/lets-learn-react-chapter-8-react-forms-f3137a5c07c7
By using this database schema: https://github.com/ChickenKyiv/recipe-api-only/blob/master/Recipe-ChickenKyiv-Release%231%20Schema%20%20%20SqlDBM.png
We'll advance this form. I'm pretty sure that when you'll add all fields in this form, you'll realize that it's better to create a sub-components for each form field.
So, Meal is a similar Model to Recipe.
so we'll add all important things to that form.
And, make it works :) this is when a real ES6 is coming into the scene.
and don't forget that each field will also have an id field(later it can be useful, when you'll grab data from database)
Maybe we should move it into a separated file?
<ListGroupItem>9:00</ListGroupItem>
<ListGroupItem>10:00</ListGroupItem>
<ListGroupItem>11:00</ListGroupItem>
<ListGroupItem>12:00</ListGroupItem>
<ListGroupItem>13:00</ListGroupItem>
<ListGroupItem>14:00</ListGroupItem>
<ListGroupItem>15:00</ListGroupItem>
<ListGroupItem>16:00</ListGroupItem>
<ListGroupItem>17:00</ListGroupItem>
<ListGroupItem>18:00</ListGroupItem>
2 things: 1 please update it
and keep in mind.
let's assume we have 2 options, 24h time && 12h time - make it work for both cases
https://flow.org/en/docs/getting-started/
https://github.com/facebook/create-react-app/blob/master/packages/react-scripts/template/README.md#adding-flow
https://medium.com/flow-type/even-better-support-for-react-in-flow-25b0a3485627
https://medium.com/@linmic/its-time-to-remove-proptypes-and-just-use-flow-for-react-4a3de615aac5
https://bitsrc.io/groceristar/recipe-search-form (we'll create another scope for Meal Calendar)
https://docs.bitsrc.io/tutorial/react-tutorial.html
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.